Re: trying to use IO::Handle



Chas. Owens wrote:
On Sun, Apr 13, 2008 at 3:20 PM, John W. Krahn <krahnj@xxxxxxxxx> wrote:
snip
Why not just:
snip
push @bad, "$3_$5_$4_$6_$2_$1";
snip

I believe they would come out roughly the same in terms of
performance, but, in general, I don't trust $1, $2, etc outside of a
substitution. I have been bitten by interrupts that modified/cleared
them before.

You snipped out the part where I changed s{}{} to m{}.


John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
.



Relevant Pages