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

Re: Accessing a lexical variable of another file.

by Anonymous Monk
on Sep 11, 2014 at 03:10 UTC ( [id://1100231]=note: print w/replies, xml ) Need Help??


in reply to Accessing a lexical variable of another file.

Hello, I'm captain-obvious-here :)

FWIW this isn't perl

// second.pl my $var = 1; // main.pl require("second.pl") // how do I access $var from here?

Also, while you can do things in perl like Accessing a lexical variable of another file. its not a good idea ... you already have the code, just change it :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-24 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found