Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

SPOILER! (Guildenstern)Re: How to (ab)use substr

by Guildenstern (Deacon)
on May 03, 2001 at 21:25 UTC ( #77723=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 substr
    use strict;
    ...
     substr         ($pi,9,2));}(map{chr($_+
       substr       ($pi,21,2))}(
         substr     ($pi,8)x3)=~/../g);
    
  2. or download this
    substr($^X,0)=substr($pi,-6);
    
    ...
            chr($_+
            substr($pi,21,2))
            }(substr($pi,8)x3)=~/../g);
    
  3. or download this
    substr($^X,0)=substr($pi,-6);
    
    ...
       substr($pi,-3,1).'.'.
       substr($pi,9,2));
       }(@tempa);
    
  4. or download this
    substr($^X,0)=375062;
    
    ...
       0.'.'.
       05);
       }(@tempa);
    
  5. or download this
    $^X="select";
    
    ...
       print"$^O$/";
       eval($^X.('$b,'x3).'0.05');
       }(@tempa);
    
  6. or download this
    $^X="select";
    
    ...
      print"$^O$/";
      eval($^X.('$b,'x3).'0.05');
    }
    
  7. or download this
    foreach (substr($pi,8)x3)=~/../g)
    {
    ...
      print"$^O$/";
      select $b,$b,$b,0.05;
    }
    
  8. or download this
    foreach (("Just~another~Perl~hacker~"x3)=~/./g) 
    {
    ...
      print"$^O$/";
      select $b,$b,$b,0.05;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2020-10-20 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (210 votes). Check out past polls.

    Notices?