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

Re: Re: Re: Simple file to array

by FoncÚ (Scribe)
on Jul 09, 2002 at 12:30 UTC ( [id://180457] : note . print w/replies, xml ) Need Help??


in reply to Re: Re: Simple file to array
in thread Simple file to array

A nice explination...this and everyone else's has helped me a lot...thanks! As I understand lexical variables, they would be the same as not passing a variable back into the programme from a subroutine in, say, BASIC, right? It just remains inside whatever sub or block and isn't global? But in this case, to allow it to be global, I simply leave of the my? Just making sure I have things straight. Also...the way I had it chomp above doesn't seem to work...Can someone explain why not?