Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^2: Error with require LABEL;

by slinky773 (Sexton)
on Dec 19, 2013 at 23:24 UTC ( #1067898=note: print w/replies, xml ) Need Help??

in reply to Re: Error with require LABEL;
in thread Error with require LABEL;

That skips  require ""; entirely. I have no idea why. It just goes straight onto the rest of the script.

Replies are listed 'Best First'.
Re^3: Error with require LABEL;
by jethro (Monsignor) on Dec 20, 2013 at 21:49 UTC

    require() skips loading the second time because it records internally which file it already has loaded and therefore doesn't need to load again. This is because require was used to load libraries in early perl versions. Later use() replaced require() because it does much more.

    But using require to start other scripts is definitely not as intended. As you have experienced.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2021-04-21 11:39 GMT
Find Nodes?
    Voting Booth?

    No recent polls found