Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: print_notice or print $notice or print notice?

by wog (Curate)
on Oct 14, 2001 at 22:24 UTC ( [id://118769]=note: print w/replies, xml ) Need Help??


in reply to Re: print_notice or print $notice or print notice?
in thread print_notice or print $notice or print notice?

Unfortunatly, that method for changing the text for internationalization won't work. use constant is evaluated at compile-time, thus if code is compiled, a use constant in it will take effect, to illustrate this:

#!/usr/bin/perl -w use strict; use constant TEST => 'outside'; if (0) { use constant TEST => 'if(0)'; } print TEST, "\n"; __END__ outputs: Constant subroutine TEST redefined at ... if(0)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-26 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found