Changeset 556 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Base.pm
- Timestamp:
- Sep 23, 2008, 12:41:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Base.pm
r512 r556 38 38 39 39 our @ISA = qw(Exporter); 40 our @EXPORT = qw(pb_mkdir_p pb_system pb_rm_rf pb_get_date pb_log pb_log_init pb_get_uri pb_get_content pb_ display_file pb_syntax_init pb_syntax pb_temp_init $pbdebug $pbLOG $pbdisplaytype $pblocale);40 our @EXPORT = qw(pb_mkdir_p pb_system pb_rm_rf pb_get_date pb_log pb_log_init pb_get_uri pb_get_content pb_set_content pb_display_file pb_syntax_init pb_syntax pb_temp_init $pbdebug $pbLOG $pbdisplaytype $pblocale); 41 41 42 42 =pod … … 300 300 } 301 301 302 303 =item B<pb_set_content> 304 305 This function put the content of a file into the file passed in parameter. 306 307 =cut 308 309 sub pb_set_content { 310 311 my $file=shift; 312 my $content=shift; 313 314 my $bkp = $/; 315 undef $/; 316 open(R,"> $file") || die "Unable to write to $file: $!"; 317 print R "$content"; 318 close(R); 319 $/ = $bkp; 320 } 321 302 322 =item B<pb_syntax_init> 303 323
Note:
See TracChangeset
for help on using the changeset viewer.