in reply to Re: remove a random variable from an array
in thread remove a random variable from an array

@arr = qw(zero one two three four five); print "$_: $arr[$_]\n" for(3, 3.1415926);

Prints:

3: three 3.1415926: three

No worries. Just thought you might like to know. :-)

bbfu
Seasons don't fear The Reaper.
Nor do the wind, the sun, and the rain.
We can be like they are.

Replies are listed 'Best First'.
Re: (bbfu) (integer array indices) Re(2): remove a random variable from an array
by suaveant (Parson) on Apr 20, 2001 at 17:32 UTC
    Huh... no real surprise perl is smarter than a decimal number :)
                    - Ant