Bryan, et al -- ...and then Bryan R Harris said... % % Nope, the compiler won't allow that... Does it work for you? % % It gives the errors: % Scalar value @lines[0] better written as $lines[0] at ... % Can't use subscript on array slice at ... near "1]" % Execution ... aborted due to compilation errors.
Well, I didn't quite get *that* error, but I did get a problem at ][. I found that nothing I could do with the [0][0,1] style would work; when I tried print "@lines[0]" I got the array reference itself, "ARRAY(0x80f8754)". I was able to spit out either cat or dog with % perl -e '$lines[0] = ["dog","cat"]; print "@lines[0]->[0]\n";' dog % perl -e '$lines[0] = ["dog","cat"]; print "@lines[0]->[1]\n";' cat but still got only "cat" when I tried "[0,1]". Hrmmm... Now I'm interested in this, too :-) % % - B HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg25271/pgp00000.pgp
Description: PGP signature