Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by gmax (Abbot)
on Jan 02, 2002 at 11:05 UTC ( #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? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2021-11-28 20:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?