Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Reading from an array using angle brackets

by toolic (Bishop)
on Jan 23, 2013 at 21:57 UTC ( #1015035=note: print w/replies, xml ) Need Help??


in reply to Reading from an array using angle brackets

Use B::Deparse (Tip #6 from the Basic debugging checklist) to see how perl treats your code:

use warnings; use strict 'refs'; my(@A) = ('a', 'b', 'c'); use File::Glob (); while (defined(my $x = glob(join($", @A)))) { do { print "$x\n" }; } print "@A\n";

Replies are listed 'Best First'.
Re^2: Reading from an array using angle brackets
by bounsy (Acolyte) on Jan 23, 2013 at 22:24 UTC

    I knew that the angle brackets could do glob, I just didn't realize that Perl was doing a glob in this case. I guess I need to use B::Deparse more often. Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015035]
help
Chatterbox?
[Corion]: Hi all! After 13 years or so in the same room, I've now moved to a new room (one door further) - weird :-D
[moritz]: I had an office move too, two floors up
[moritz]: so far I've managed not to get into my old office by accident, but once it was close (already stopped at the wrong floor)

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2017-10-17 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (224 votes). Check out past polls.

    Notices?