Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Constant names come into conflict with Perl style?

by sgt (Deacon)
on Feb 09, 2007 at 13:37 UTC ( [id://599206]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use constant MYPACKAGE_c  => 'Universe::Tiny';
    use constant RWXu         => 0700;
    use constant MYLOGGERc    => \do{local *FH; *FH};
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    open  LOGGERc, ">mylog" or die; # gotcha
    print {LOGGERc}  "info...", "\n" or die;
    print {\*STDOUT} qx(cat mylog);
    
  3. or download this
    decent_shell% perl -MLWP::UserAgent -Mconstant=PKGc,LWP::UserAgent -e 
    +'print +PKGc->new();'
    

Log In?
Username:
Password:

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

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

    No recent polls found