Thanks to everyone for their help! It's been very enlightening!

Stan

On Apr 4, 2012, at 4:51 AM, Shlomi Fish wrote:

> Hi all,
> 
> inspired by this thread, I’ve added this item in my “Perl Elements to Avoid”
> page:
> 
> http://perl-begin.org/tutorials/bad-elements/#ternary_operator_instead_of_if_else
> 
> I added it directly below the item about using map instead of foreach for
> side-effects, which exhibits a similar misunderstanding.
> 
> Thanks to the original poster and all the people who replied. 
> 
> Regards,
> 
>       Shlomi Fish
> 
> On Tue, 3 Apr 2012 17:39:10 -0400
> "Stan N/A" <stan...@gmail.com> wrote:
> 
>> I've run into a weird issue where the ternary operator isn't doing
>> what I believe it normally would and need some help understanding the
>> issue. I'm sure I'm missing some critical point, but perhaps this is
>> an issue with perl. Here's a short 14 line script exemplifying the
>> issue:
> [SNIP]
> 
> 
> -- 
> -----------------------------------------------------------------
> Shlomi Fish       http://www.shlomifish.org/
> Funny Anti-Terrorism Story - http://shlom.in/enemy
> 
> <mst> I find it’s usually safe to assume that whatever shlomif’s doing, there
> isn’t a good reason for it.
> 
> Please reply to list if it's a mailing list post - http://shlom.in/reply .


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to