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

Re^5: I put the J in JAPH

by liverpole (Monsignor)
on Sep 19, 2005 at 14:21 UTC ( [id://493172]=note: print w/replies, xml ) Need Help??


in reply to Re^4: I put the J in JAPH
in thread I put the J in JAPH

Excellent!  I have one request -- can you explain the magic you're doing with AUTOLOAD, and what you mean by "vstrings"?  I haven't used AUTOLOAD much, (I actually *did* think about using it for this obfuscation) so I'd appreciate knowing more!

Updated:  Here's what I have so far:
#!/usr/bin/perl -w + use warnings; + my $text; my @a = ( sub {$text = $_[0]}, # Assign text to $1 sub {$text = $_[0] . $text}, # Prepend text with $1 sub {$text .= "\n"; shift}, # Appends "\n" to text sub {$text =~ s/$_[1]//; print $text} # Remove $1 from text, pri +nt text ); + sub AUTOLOAD { *{$AUTOLOAD} = shift(@a); goto &$AUTOLOAD } + foreach my $subname (v74, "put", "the", "RAPH") { *{$subname.'::AUTOLOAD'} = \&{'AUTOLOAD'} } + I put the J in RAPH and remove the R

Log In?
Username:
Password:

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

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

    No recent polls found