http://qs1969.pair.com?node_id=302812


in reply to Calling subs with &

You can also use & for evil purposes like using reserved words as sub names. It's not bad for obfuscation though.
use strict; &use(); #use(); #this doesn't work sub use { print "In sub\n"; }

Replies are listed 'Best First'.
Re: Calling subs with &
by Abigail-II (Bishop) on Oct 28, 2003 at 22:23 UTC
    It's not bad for obfuscation though.
    package Just_another_Perl_Hacker; sub print {($_=$_[0])=~ s/_/ /g; print } sub __PACKAGE__ { & print ( __PACKAGE__)} & __PACKAGE__ ( )

    Abigail