Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Syntactic Confectionery Delight
 
PerlMonks  

Re: How to (ab)use map

by kilinrax (Deacon)
on Apr 04, 2001 at 21:18 UTC ( #69752=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w                          # how to (ab)use map 
    use strict; 
    ...
    map 
     
    BEGIN{ $b=1 << (@_ = split//, "map") }
    
  2. or download this
    qw[
      .map?()map 
    ...
      *map{map{1}map 
      {^)map{1}map 
    ]; 
    
  3. or download this
    my $b = 8; 
     
    ...
      $a = 0; 
      print "\n" 
    }
    
  4. or download this
    tr|map{}(/^?.*/)|1612a45368054|d; 
    $_ = (++$a == 1 ? $b-- : 0) + hex $_; 
    $_ = $a & 1 ? ' ' x $_ : '_/' x $_;
    
  5. or download this
    qw[
      8161644161 
    ...
      0161216121a161 
      23416121a161
    ];
    
  6. or download this
    #!/usr/bin/perl -w 
     
    use strict; 
    ...
    0161216121a161 
    0161216121a161 
    23416121a161
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (14)
As of 2014-04-24 13:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (566 votes), past polls