c:\@Work\Perl>perl -wMstrict -le "my $s = 'foo: notwantedonvoyage: bar'; my ($foo, undef, $bar) = split /: /, $s; print qq{'$foo' '$bar'}; " 'foo' 'bar'
In reply to Re: Store result of split directly to variable(s)
by AnomalousMonk
in thread Store result of split directly to variable(s)
by Perl_Ally
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |