Say that you read a line in $line, then this code:
my %vars=$line=~/(.{25})(.{15})/g;populates the hash %vars with the variable/value couples from $line.
Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."
In reply to Re: Extracting specific data from fixed-width columns
by psini
in thread Extracting specific data from fixed-width columns
by lunabelle22a
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |