in reply to How can I use the the return value of split without assigning?
my $first = (split /=/, $string)[0]; # or even... my ($first) = split /=/, $string;
_____________________________________________________
Jeff japhy Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|