in reply to Re^2: split function
in thread split function
I understand all code except my $view = (split(/:/ , $setView))1
split returns a list, and a list, properly parenthesized, can be subscripted:
c:\@Work\Perl\monks>perl -wMstrict -le "my $one = ('zero', 'uno', 'two')[1]; print qq{'$one'}; " 'uno'
Give a man a fish: <%-(-(-(-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: split function
by gimcdan (Acolyte) on Apr 28, 2015 at 14:16 UTC | |
by AnomalousMonk (Archbishop) on Apr 29, 2015 at 01:31 UTC |