Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: glob behavior

by davido (Archbishop)
on Mar 20, 2012 at 19:23 UTC ( #960637=note: print w/replies, xml ) Need Help??


in reply to Re^2: glob behavior
in thread glob behavior

Once again you're dealing with different contexts. my $file = glob ... evaluates glob in scalar context, rendering it an iterator function, and my ($file) = glob ... evaluates glob in list context, rendering it a list function that returns a list, which can be empty.


Dave

Replies are listed 'Best First'.
Re^4: glob behavior
by vagabonding electron (Chaplain) on Mar 23, 2012 at 15:38 UTC
    Thank you Dave,
    in fact I did not intend to object but rather to show that I understood the difference now :-)
    VE

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://960637]
help
Chatterbox?
marioroy it's taken so long, but MCE::Shared 1.827 is near the finish line. I want to add more to the documentation before making a release. This post is good to go. Github is current as well.
marioroy MCE 1.830 is completed. I will release it after completing MCE::Shared.
marioroy concurrent Tie::File among many workers is possible via MCE::Shared.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2017-08-18 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (295 votes). Check out past polls.

    Notices?