in reply to Unwanted interpolation in backquoted string
open(FILE, $file) or die "$!"; my @file = <FILE>; close(FILE); foreach (@file) { if (m/$val[0]/) { $tmp = (split /\s+/,$_)[1]; print $tmp . "\n"; } }
CC
Note that this is completely untested...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Unwanted interpolation in backquoted string
by Anomynous Monk (Scribe) on May 04, 2004 at 17:15 UTC | |
by coec (Chaplain) on May 05, 2004 at 00:18 UTC |