Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 studying the Monastery: (13)
As of 2015-07-31 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (277 votes), past polls