I suggest you do a 'perldoc perlre' and read up on regular expressions. I think you'll be pleasantly surprised by what you find there.if ($line =~ m/Trunk Group: (\w+)/) { my $match = $1; #do things with $match }
thor
In reply to Re^3: File Processing
by thor
in thread File Processing
by pastorizah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |