when i tried the following code, only 1 line is getting extrated(first instance). But there are more than 1 line in input text file that starts with "@".
open(IN, "<input.txt"); while(<IN>) { s#\@(.*?)\n##;my $temp=$1; print "output: $temp\n"; } close(IN);
Please advise.
20040907 Edit by ysth: code in code tags
In reply to working with files by texuser74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |