Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

namespace craziness

by mkmcconn (Chaplain)
on Jan 30, 2001 at 07:41 UTC ( [id://55172]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
      # easy! It's an error...it's 265...it's 50?  Find out :-)
    print MULTIPLIER * $x, "\n";
    
  2. or download this
    BEGIN{print MULTIPLIER; print "\n";}
    
  3. or download this
    BEGIN {print MULTIPLIER => "\n";}
    
  4. or download this
    BEGIN {print MULTIPLIER * sub{return MULTIPLIER}, "\n";}
      # which really ought to be written as below to get 
      # sane results (real obfuscation value there,
      # but not really a namespace issue)
    BEGIN {print MULTIPLIER * &{sub{return MULTIPLIER}}, "\n";}
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2025-03-26 23:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (68 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.