error : Modification of a read-only value attempted at - line 4, <FILE> line 1. ALSO,open (FILE,"abc.txt") or die $!; while (<FILE>){ ($_ =~ /((^Question = .*)|(^\>.*)|(Height = .*)|(Score = \d) +)/i); print $1 "\n"; print $2 "\n"; print $3 "\n"; print $4 "\n"; } close (FILE) ;
can anybody tell me how to get just the first 4 matches for all the regex too ?
In reply to Re^3: add new lines to output.
by shaludr
in thread add new lines to output.
by shaludr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |