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

See the output of the following two one-liners:

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

  • Comment on Re: Re: •Re: Problem with Schwartzian Transform nested in another sort from a different package
  • Select or Download Code