Bod has asked for the wisdom of the Perl Monks concerning the following question:
I've come across this bit of code within an existing legacy script - not written by me
(my $pname,my $sname)=split / +/,$rname,2;
I'm wondering if it is functionally different to writing
I've tested the two against each other and they seem to behave exactly the same. But, is there some subtle difference my quick test has not uncovered?my ($pname, $sname) = split / +/, $rname, 2;
Back to
Seekers of Perl Wisdom