develooper Front page | perl.perl5.porters | Postings from January 2004

[perl #25261] add print sort example

From:
Dan Jacobson
Date:
January 25, 2004 09:14
Subject:
[perl #25261] add print sort example
Message ID:
rt-3.0.8-25261-72157.18.7151186966035@perl.org
# New Ticket Created by  Dan Jacobson 
# Please include the string:  [perl #25261]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=25261 >


$ perldoc -f sort
    print sort @harry;
              # prints AbelCaincatdogx
OK, add an example to show how to print
Abel
Cain
cat
dog
x

for my $i (sort @harry){print $i,"\n"};
I suppose.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About