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

Re^3: export variable outside foreach

by AnomalousMonk (Abbot)
on Jun 19, 2014 at 09:10 UTC ( #1090430=note: print w/ replies, xml ) Need Help??

in reply to Re^2: export variable outside foreach
in thread export variable outside foreach

@lines being empty seems unlikely, since it was grepped out of the file.

I don't understand this point. Why would grep-ing the contents of the file make it likely that the  @lines array must contain something? (Or does this refer to a previous version of the posted code that was changed without citation?)

Comment on Re^3: export variable outside foreach
Select or Download Code
Re^4: export variable outside foreach
by Eily (Deacon) on Jun 19, 2014 at 09:18 UTC

    My bad, I read "@lines is empty" correctly, but understood "@lines contains empty strings" :).

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2014-12-17 21:48 GMT
Find Nodes?
    Voting Booth?

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

    Results (34 votes), past polls