Front page | perl.perl5.porters |
Postings from April 2000
in light of my sort() message
Thread Next
From:
Jeff Pinyan
Date:
April 17, 2000 00:15
Subject:
in light of my sort() message
Message ID:
Pine.GSO.4.21.0004170311040.28375-100000@crusoe.crusoe.net
Would someone with 5.6 please check what O::Deparse thinks of this? Here
are the 5.005_02 results:
jeffp@friday [3:11am] ~ #2perl -MO=Deparse
sub foo { 4,2 }
@a = sort foo(30,20,10);
@a = sort(foo(30,20,10));
@a = sort +foo(30,20,10);
@a = sort &foo(30,20,10);
-e syntax OK
sub foo {
4, 2;
}
@a = sort(foo 30, 20, 10);
@a = sort(foo 30, 20, 10);
@a = sort(foo(30, 20, 10));
@a = sort(&foo(30, 20, 10));
__END__
Obviously, 5.005_02's Deparse.pm was slightly wrong with the
+foo() syntax, which we know is more equivelent to the &foo() syntax
(prototypes honored, though).
--
MIDN 4/C PINYAN, NROTCURPI, US Naval Reserve japhy@pobox.com
http://www.pobox.com/~japhy/ http://pinyaj.stu.rpi.edu/
PerlMonth - An Online Perl Magazine http://www.perlmonth.com/
The Perl Archive - Articles, Forums, etc. http://www.perlarchive.com/
Thread Next
-
in light of my sort() message
by Jeff Pinyan