Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: grep trouble

by (anonymized user) (Curate)
on Apr 18, 2011 at 13:49 UTC ( #899945=note: print w/replies, xml ) Need Help??

in reply to grep trouble

All this reminds me of why a colleague of mine stubbornly refuses to use any built-in variables, not even $_. But of course, as this example demonstrates, ignorance is not always bliss - even avoiding them doesn't stop them sneaking up and biting you on the arse. I think on the whole it is better to understand (read up on) the impact of code on the built-ins, especially $_ and the matching variables, and vice-versa. Merely being aware of their behaviour would prompt using debug and setting a watch on these variables before testing the relevant areas of code, when encountering such "anomalies".

One world, one people

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (12)
As of 2018-10-19 15:09 GMT
Find Nodes?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...

    Results (109 votes). Check out past polls.