Exploding check commands batman ...

Elliot Finley efinleywork at efinley.com
Fri Jul 1 22:47:16 CEST 2005


----- Original Message ----- 
From: "Paul L. Allen" <pla at softflare.com>
> On the other hand, 
> 
>    $x = 'five';
>    $x++;
>    print "$x\n"; 
> 
> gives an answer of one (the string 'five', when evaluated as a number,
> is equivalent to 0). 
>
>    $x = 'perl';
>    $x++;
>    print "$x\n"; 
> 
> and the output is 'perm', provided you didn't use $x as a string between
> defining it and the increment, and it only works with auto-increments.
> There's a reason for all that too, and it's not so you can make hair
> jokes about perl. 

Why would these two cases be different?

Elliot



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list