in reply to Re: tr/// statement
in thread tr/// statement
data.txt contains lines like:@letter = qw( a b c w x y ); for ($n=0; $n<6; $n++){ $x = $letter[$n]; $m = 0; open (DATA, "data.txt") || die "Could not open source data file."; while (<DATA>) { $cnt = eval "tr/$x/$x/"; $m += $cnt; } print "$x $m"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A another tr/// statement question..
by kevin_i_orourke (Friar) on Jul 19, 2001 at 16:29 UTC | |
by supernewbie (Beadle) on Jul 19, 2001 at 16:48 UTC | |
|
Re: A another tr/// statement question..
by bwana147 (Pilgrim) on Jul 19, 2001 at 16:55 UTC | |
|
Re: A another tr/// statement question..
by stefan k (Curate) on Jul 19, 2001 at 16:34 UTC | |
by supernewbie (Beadle) on Jul 19, 2001 at 16:46 UTC | |
|
Re: A another tr/// statement question..
by runrig (Abbot) on Jul 19, 2001 at 18:46 UTC |