in reply to Re: •Re: Problem with Schwartzian Transform nested in another sort from a different package
in thread Problem with Schwartzian Transform nested in another sort from a different package
perl -MO=Xref -e "my @array = sort { $a <=> $b } ( 2, 8, 3 );"
perl -MO=Xref = "local ( $a, $b ); my @array = sort { $a <=> $b } ( 2, + 8, 3 );"
The first example results in crossreference output that essentially makes no mention of $a and $b.
The second example results in crossreference output that includes $a and $b under the package main namespace.
Dave
|
|---|