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

Re: RFC: Self Assessment Perl

by eyepopslikeamosquito (Archbishop)
on Sep 07, 2018 at 07:33 UTC ( [id://1221906]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my @oldlist = ( 4, 7, 8 );
    
  2. or download this
        my @oldlist = ( 4, 7, 8 );
        my @newlist = map($_ + 42, @oldlist);
    
  3. or download this
        my $names = "freddy fred bill jock kevin andrew kevin kevin jock";
    
  4. or download this
        kevin     : 3
        jock      : 2
    ...
        bill      : 1
        fred      : 1
        freddy    : 1
    
  5. or download this
        my $names = "freddy fred bill jock kevin andrew kevin kevin jock";
        my %freq;
    ...
        for my $k (sort { $freq{$b} <=> $freq{$a} || $a cmp $b } keys %fre
    +q) {
           printf "%-10s: %d\n", $k, $freq{$k};
        }
    
  6. or download this
        my $infile  = 'in.tmp';
        my $outfile = 'out.tmp';
    
  7. or download this
        my $infile  = 'in.tmp';
        my $outfile = 'out.tmp';
    ...
        }
        close($fhin);
        close($fhout);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-20 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found