Can you suggest me some suitable codeSure:
open FILE, '<', 'san.txt' or die "Cannot open 'san.txt' $!"; my $incr = -1; my @array; while ( <FILE> ) { chomp; next if /^\s*(?:#|$)/; $incr++ if /^ITEM NO:/; push @{ $array[ $incr ] }, $_; } test2::REQUEST( @array );
In reply to Re: Problems reading records from file
by jwkrahn
in thread Problems reading records from file
by sanjay nayak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |