Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Re: Re: Perl's pearls

by gmax (Abbot)
on Jan 02, 2002 at 11:05 UTC ( [id://135633]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print map {"@$_\n" } sort {$a->[0] cmp $b->[0]} grep { @$_ > 1}
       values %words;
    
  2. or download this
    while (<>) {
        chomp;                                
    ...
    }
    print join "\n", sort grep {tr/ //} values %words;
    print "\n";
    
  3. or download this
    my @array = qw(one two three);
    
    ...
    print "@array";
    # output : 'one two three'
    # it's the same as print join " ", @array;
    
  4. or download this
    #!/usr/bin/perl -w
    
    ...
     string:    5.40
     array :    5.05
    =cut
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://135633]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-20 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found