Hi rizzler
Try this
sub addheader{ my($infile,$header)=@_; open(FILE, "$infile"); my $text=do {local $/; <FILE>}; close FILE; open(FILE,">$infile"); print FILE $header; print FILE $text; close FILE; }
In reply to Re^3: unwanted ARGV in subroutine
by perl_walker
in thread unwanted ARGV in subroutine
by rizzler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |