in reply to (ar0n: split methinks) Re: novice
in thread novice

Or, if you wish to exclude the @ary
#!/usr/bin/perl use strict; $_="one two three four"; split; print $_[2];

Jouke Visser, Perl 'Adept'

Replies are listed 'Best First'.
RE: Re: (Jouke) novice
by dchetlin (Friar) on Sep 27, 2000 at 22:11 UTC
    Be careful ... if you'd used warnings you'd see:

    Use of implicit split to @_ is deprecated at <blah blah>.

    If you really want the third field only, why not use print +(split)[2]?

    -dlc