Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Global symbol requires explicit package..

by Tux (Abbot)
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

Replies are listed 'Best First'.
Re^3: Global symbol requires explicit package..
by Laurent_R (Abbot) 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 romping around the Monastery: (8)
As of 2016-08-25 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (362 votes). Check out past polls.