Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

by Guildenstern (Deacon)
on May 03, 2001 at 21:25 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://77723]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-03-28 18:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found