in reply to accessing multiple items from array

Also, if you had turned on warnings, you would have been tipped off by the message "Multidimensional syntax $fields[1,3] not supported at line...".

YMMV, but I find it's a lot faster to add the perl -w switch to one-liners than to debug them without it. I'll admit that I don't always use strict until my scripts get to be, oh, five or six lines long. Mea culpa.

Chants softly

use strict;
use warnings;

use strict;
use warnings;

use strict;
use warnings;
...

Replies are listed 'Best First'.
Re^2: accessing multiple items from array
by goibhniu (Hermit) on Sep 12, 2007 at 01:11 UTC