Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: rusty lock

by Anonymous Monk
on May 26, 2006 at 18:22 UTC ( [id://551923]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s,$/,,g,
    eval
    
  2. or download this
    $|--;
    print join $",
        map {
    ...
            }
            @_[$|--..$^F+$|]
        } -> ()
    
  3. or download this
    $|--;
  4. or download this
        split "\n", join '', <DATA>;
  5. or download this
        unshift @_, map { $. = (length) - $|--; $_ } shift;
  6. or download this
        {
            undef @bins;
            map @{[ push @{ $bins[ ord( (/.{$.}(.)/)[$|] ) ] }, $_ ]}, @_;
            @_ = map @$_, @bins;
            $.-- && redo
        }
    
  7. or download this
    $bins[ ord('l') ] = [ 'uhinbyl' ];
    $bins[ ord('v') ] = [ 'zobxiiv' ];
    $bins[ 0 ] = [ 'xqsauh', 'zozmib', 'xtbemz', 'ujwq', 'xzaf', 'ufde' ];
    
  8. or download this
        map {
            y/ //d;         # delete spaces.  None of the words have any, 
    +so no-op.
    ...
                            # $. ended up with the value -1.  Here it beco
    +mes 3
            $_
        }
    
  9. or download this
        map {
            $_{$_} = $a++;  # %_ hash becomes
    ...
            $.++;           # 4 more increments leaves $. set to 7
            $_
        }
    
  10. or download this
        map {
            $_[$_{$_}] =            # $_{$_} is the hash value that was
    ...
                  ...
                } -> ($_{$_}, $_)   # hash {$_}, $_ = (value, key) pair
        }
    
  11. or download this
    $_[0] = sub { ... } -> (0, 'ufde')
    $_[1] = sub { ... } -> (1, 'uhinbyl')
    $_[2] = sub { ... } -> (2, 'ujwq')
    $_[3] = sub { ... } -> (3, 'xqsauh')
    
  12. or download this
        join '',
        map {
    ...
           $_ += 26 while $_ < 93;
           chr
        }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-16 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found