Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Self-Modifying-Perl-Script

by dse (Novice)
on Nov 04, 2015 at 23:26 UTC ( [id://1146953]=note: print w/replies, xml ) Need Help??


in reply to Re: Self-Modifying-Perl-Script
in thread Self-Modifying-Perl-Script

Here's something I whipped up for fun:
#!/usr/bin/env perl -pi.orig use warnings; use strict; BEGIN { @ARGV = $0; while (<>) { do { print; last; } if /^__DATA__$/; } continue { print; } } tr/A-Z/N-ZA-M/; tr/a-z/n-za-m/; __DATA__ Guvf vf n cebtenz gung zbqvsvrf vgfrys va cynpr. Vg ebg13 rapbqrf vgf bja __QNGN__ frpgvba jura lbh eha vg. Nalguvat orsber gur __QNGN__ frpgvba vf yrsg hazbqvsvrq. Lbh jvyy frr gur sbyybjvat qvntabfgvp reebe, juvpu lbh pna vtaber: -v hfrq jvgu ab svyranzrf ba gur pbzznaq yvar, ernqvat sebz FGQVA.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-19 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found