while (<DPSLOTFILE>) { my ($slot) = /$dpdrivloc:\s*(\d+)/; # Do something with $slot }
------
We are the carpenters and bricklayers of the Information Age.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In reply to Re: Extract field after keyword
by dragonchild
in thread Extract field after keyword
by jamen_98
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |