PerlZealot has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl my $filestring = $ARGV[0]; my $outfile_str = "$ARGV[1]"."_new"; open(IN, "<$filestring"); open(OUT, ">$outfile_str"); my $string_parser; while(<IN>){ $string_parser = <IN>; print "$string_parser"; chomp $string_parser; chop $string_parser; print OUT "$string_parser "; } close(IN); close(OUT); Any ideas?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: file handles and file input
by kyle (Abbot) on Feb 12, 2008 at 20:35 UTC | |
Re: file handles and file input
by pc88mxer (Vicar) on Feb 12, 2008 at 20:38 UTC | |
Re: file handles and file input
by GrandFather (Saint) on Feb 12, 2008 at 20:38 UTC | |
Re: file handles and file input
by sh1tn (Priest) on Feb 12, 2008 at 21:35 UTC | |
by FunkyMonk (Chancellor) on Feb 12, 2008 at 22:29 UTC | |
by sh1tn (Priest) on Feb 13, 2008 at 00:06 UTC | |
by softworkz (Monk) on Feb 13, 2008 at 16:23 UTC | |
Re: file handles and file input
by Anonymous Monk on Feb 12, 2008 at 21:18 UTC |