Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^2: Regexp mystery (to me)

by ysth (Canon)
on Mar 03, 2008 at 21:34 UTC ( [id://671724] : note . print w/replies, xml ) Need Help??

in reply to Re: Regexp mystery (to me)
in thread Regexp mystery (to me)

You shouldn't use & when calling subroutines, see perlsub for reasons why.
A quick read of perlsub doesn't show what you might mean, and IMO there is no problem with consistently using & and parentheses.

Replies are listed 'Best First'.
Re^3: Regexp mystery (to me)
by jwkrahn (Abbot) on Mar 03, 2008 at 23:27 UTC
    With parentheses it's fine, as long as you're not using prototypes. Without the parentheses it could cause a problem.