Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Self sufficient? :)

by Maqs (Deacon)
on Jul 09, 2000 at 22:03 UTC ( #21713=obfuscated: print w/ replies, xml ) Need Help??

I hope that will work properly :)
#!/usr/bin/perl &just;sub just{&another};sub another{&perl};sub perl{&hacker}; sub hacker{foreach $ja(sort keys %main::){local *ph=$main::{$ ja};if(defined &ph){push @japh,$ja}}};@japh=(@japh)[2,0,3,1]; print "@japh\n";


Comment on Self sufficient? :)
Download Code
Replies are listed 'Best First'.
RE: Self sufficient? :)
by vkonovalov (Monk) on Jul 10, 2000 at 10:09 UTC
    Good idea, but why to be so noisy? Each %main:: can be easily replaced with just %::

    Look what becomes after little modifications:

    &just;sub just{&another};sub another{&perl};sub perl{&hacker}; sub hacker{@japh=grep{defined &{$::{$_}}}sort keys %::} print "@japh[2,0,3,1]\n";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: obfuscated [id://21713]
Approved by root
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (16)
As of 2016-02-12 17:23 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (410 votes), past polls