Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 browsing the Monastery: (7)
As of 2024-04-24 12:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found