Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Re: How to refer to a scalar variable dynamically?

by RolandGunslinger (Curate)
on Dec 09, 2003 at 19:55 UTC ( #313511=note: print w/replies, xml ) Need Help??


in reply to Re: Re: How to refer to a scalar variable dynamically?
in thread How to refer to a scalar variable dynamically?

Don't feel too stupid, I had the same question, and the answer helped me too. :-)
  • Comment on Re: Re: Re: How to refer to a scalar variable dynamically?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://313511]
help
Chatterbox?
[Discipulus]: while (readdir DIR) was wrong too; it is while ($_ = readdir DIR)
[Corion]: Discipulus: I have to admit that nowadays I either use Path::Class or use File::Find or simply File::Glob:: bsd_glob to read a directory, depending on how fancy my needs are
[shmem]: Discipulus: while (readdir DIR) works fine
[Discipulus]: Eataly vs World(coffe) ;=)
[Discipulus]: shemem i wrote it directly.. but when i tested it i got a lot of 'undefined value..'
[Corion]: Oh, poor Trump can't get a break. Even the Vatican only sends the second in command to greet him...
[shmem]: Discipulus: readdir has the same semantics as readline (a.k.a <>). Have another coffee ☕ ;-)
[Discipulus]: ah! just with my old system perl (5.8.8) was needed

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