Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Ignore file in array without looping

by Corion (Pope)
on Mar 27, 2013 at 18:18 UTC ( #1025782=note: print w/ replies, xml ) Need Help??


in reply to Ignore file in array without looping

... next if grep { /$file/ } @array_code; # not working

How is that grep not working? Can you describe in English what that line is supposed to do?

Maybe it helps you diagnose this if you print out the two values for each comparison?

... next if grep { warn "Checking if $_ =~ /$file/"; /$file/ } @array_code +; ...


Comment on Re: Ignore file in array without looping
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025782]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-12-20 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls