Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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
    

Log In?
Username:
Password:

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

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

    No recent polls found