On Sat, Feb 12, 2005 at 04:44:04PM +1100, Damian Conway wrote:
> Patrick R. Michaud wrote:
> 
> >>$x = $Value | 'Default';
> >>instead of :
> >>$x = $Value || 'Default';
> >
> >
> >Hmm, this is an interesting point.  I'll let others chime in here,
> >as I don't have a good answer (nor am I at all authoritative on junctions).
> 
> This is merely syntax; it doesn't really have anything to do with junctions 
> per se.
> 
> Besides which, both those syntaxes are *already* valid in Perl 5. And yet 
> people don't commonly make this mistake now. Why would they make it more 
> frequently when | produces a junction instead?

Thanks, that's what I was looking for.  Sorry I didn't catch it sooner.  :-)

Pm

Reply via email to