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

Re: grep trouble

by SimonClinch (Deacon)
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2018-07-17 02:29 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (353 votes). Check out past polls.