Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^3: a sub within a sub -- revisiting

by AnomalousMonk (Chancellor)
on Apr 10, 2010 at 07:16 UTC ( #833958=note: print w/replies, xml ) Need Help??

in reply to Re^2: a sub within a sub -- revisiting
in thread a sub within a sub -- revisiting

The ... code [of the OP] ... leads ... the reader to think that bar() makes sense in the context of foo().

But does the code lead the reader to think that foo() does not make sense in the context of bar()? (See ikegami's Re: a sub within a sub -- revisiting.) If the code does not alert the reader to the subtle (side?) effect pointed out in that reply, it is not helpful and should either be heavily commented or another, more straightforward approach should be chosen to achieve the same effect. (Of course, this assumes the effect is intended in the first place!)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://833958]
[Discipulus]: everything is .* in regexes: it has drawbacks (can be nul, is greedy..) so /hey.*,0$/ can be a solution
[Discipulus]: but pleas take a look here (page 97) and to standard documentation
[Discipulus]: perlre and perlreref

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2018-03-20 08:01 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (248 votes). Check out past polls.