in reply to option control in script

The easy way is to look at B::Deparse and use the code that Perl writes for you in the background:

perl -MO=Deparse -lane "print $F[2]"
BEGIN { $/ = "\n"; $\ = "\n"; } LINE: while (defined($_ = readline ARGV)) { chomp $_; our @F = split(' ', $_, 0); print $F[2]; }

So, the line

our @F = split(' ', $_, 0);

basically is the -a command line switch.