Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Global symbol requires explicit package..

by Tux (Monsignor)
on Jan 21, 2014 at 19:00 UTC ( #1071507=note: print w/ replies, xml ) Need Help??


in reply to Re: Global symbol requires explicit package..
in thread Global symbol requires explicit package..

NO! Do not delete it. Others might have the same question and learn :)

I'd write it even shorter:

my $lim = $^O eq "linux" ? "clear" : "cls";

The code you posted doe not past strict btw. So it must be changed before you ran it. Under strict, the bareword linux is not allowed.

BTW, do not change the original post either :)


Enjoy, Have FUN! H.Merijn


Comment on Re^2: Global symbol requires explicit package..
Select or Download Code
Re^3: Global symbol requires explicit package..
by Laurent_R (Parson) on Jan 21, 2014 at 19:50 UTC
    So would I, but I wanted to stick as much as possible to the OP's code, so that he or she could see the required changes.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2014-09-20 00:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (151 votes), past polls