Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Perl globbing syntax with $variables?

by abualiga (Scribe)
on Aug 01, 2012 at 20:41 UTC ( #984891=note: print w/replies, xml ) Need Help??

in reply to Perl globbing syntax with $variables?

I think the problem is in '*.*'. Perhaps this would work better:

$WantedFiles = '//server/path/WantedFiles'; @files = <$WantedFiles/*>;

If you also wanted the dot files from that directory, then:

@files = <$WantedFiles/* $WantedFiles/.*>;

Perl expands variables to current values before globbing them (Learning Perl).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://984891]
[pryrt]: stevieb: going thru cblast to get caught up, I see that strawberry fixed their download hashes. Fast turnaround on that fix. :-)
[pryrt]: Are you going to tie the berrybrew expected hashes to their releases.json to keep it always up-to-date?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2017-03-30 13:19 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (357 votes). Check out past polls.