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: <%-(-(-(-<
In reply to Re^3: split function
by AnomalousMonk
in thread split function
by gimcdan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |