Something like this should work:
if ( /^Query\s+(\d+)\s+/ ) { $query = $1; $offset = $+[ 0 ]; my $top = substr $_, $offset;#substring the first 15 char my $pipes = substr <DATA>, $offset; #same,if the Sbjct is more tha +n 5 numbers then this doesnt worx my $subject = <DATA>; my($value) = $subject =~ /^Sbjct\s+(\d+)/; my $bot = substr $subject, $offset;#if the Sbjct is more than 5 nu +mbers then this doesnt work
In reply to Re: finding the position
by jwkrahn
in thread finding the position
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |