Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How to (ab)use map

by kilinrax (Deacon)
on Apr 04, 2001 at 21:18 UTC ( [id://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