Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Importing vars from one script to another

by edbewald (Beadle)
on Dec 11, 2012 at 23:52 UTC ( #1008431=note: print w/replies, xml ) Need Help??


in reply to Re: Importing vars from one script to another
in thread Importing vars from one script to another

That did it! I thought I had tried everything but I was missing the '1'. Now it works.

And I agree 100% that these are hardly constants. I usually use Readonly module for that and will do so with this.

Thanks for all the answers everyone gave. I really appreciate it

  • Comment on Re^2: Importing vars from one script to another

Replies are listed 'Best First'.
Re^3: Importing vars from one script to another
by rovf (Priest) on Dec 12, 2012 at 09:51 UTC
    That did it! I thought I had tried everything but I was missing the '1'. Now it works.
    Whatever was the reason, this one can't be it.

    If you require a file, the last expression in the included file must return a value which evaluates to true, otherwise your program dies. Therefore: If you had a value which evaluated to false in your earlier version, your program would not have executed, and you would have got an error message pointing out the problem. But if it already evaluated to true in your earlier version, adding a 1 doesn't change anything.

    -- 
    Ronald Fischer <ynnor@mm.st>

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008431]
help
Chatterbox?
erix just did a 12 km-run. Slow, but unstoppable!
[choroba]: My recent record is 10km in 1 hour :)
[perldigious]: Nice erix... perldigious' legs are so sore from portaging his kayak from place to place last weekend he can barely hobble 12m. :-)
[erix]: you're faster than me then :)
[erix]: well, at the moment, that is :)
[erix]: I should lose some weight although I keep telling myself that I'm doing extra training by lugging it along
[erix]: I saw a common kingfisher and a couple of bullfinches
[erix]: bullfinch ( a male and a female )
erix learned the word 'portaging' not so long ago (from vikings lugging their ships from one river-system to another)

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-05-24 12:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?