Syntactic Confectionery Delight | |
PerlMonks |
Directory location from scalarby ecuguru (Monk) |
on Aug 29, 2005 at 05:50 UTC ( [id://487333]=perlquestion: print w/replies, xml ) | Need Help?? |
ecuguru has asked for the wisdom of the Perl Monks concerning the following question: $dir correctly prints out /test/*.* My For Each loop will fail if I try to assign allfiles to a scalar. My for Each loop works great if I hard code the directory location. Any idea how to pass a scalar as a directory, rather than hard coding? Thanks! disclaimer: I could have sworn that I posted this last week, and it's not here. So if I posted this as anon, I can't find it. If someone saw this and can point to the solution, many many thanks.
Back to
Seekers of Perl Wisdom
|
|