Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Some Weird Probelm

by strat (Canon)
on Dec 11, 2001 at 17:01 UTC ( [id://130919]=note: print w/replies, xml ) Need Help??


in reply to Some Weird Probelm

Another way to solve this problem is using constants.
e.g.
use constant DICT_A => "/usr/perl/dict_a.txt"; use constant DICT_N => "/usr/perl/dict_n.txt";
and replace every $DICT_A with DICT_A
I consider it a good thing to declare variables that are not changed in a script as constants... :-)

Best regards,
perl -e "print a|r,p|d=>b|p=>chr 3**2 .7=>t and t"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-03-29 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found