Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015035]
[Eily]: there should be an option in grep for fuzzy order of the letters in the pattern
[Eily]: as in "I might have inverted two, but my eyes misread in the some order as my fingers mistype"
[LanX]: can't find a definition for the sound
[LanX]: Voiceless_palatal_ fricative
[Eily]: Lanx https://en. wiki/Voiceless_pal atal_fricative
Eily got the Cowboy message
[Your Mother]: I prefer palatial fricatives.
[Lotus1]: https://en. wiki/%C3%87

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (16)
As of 2017-03-27 17:02 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.