More Perlishly:
use strict; use warnings; use autodie; open my $IN, '<', 'in.txt'; open my $OUT, '>', 'out.txt'; while ( my $line = <$IN> ) { print $OUT $line if $line =~ /Homo Sapiens/; } close $IN; close $OUT; __END__
Hope this helps!
Edit: removed the chomp to print the linebreaks
In reply to Re: print problem
by 1nickt
in thread print problem
by yueli711
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |