[prog] quick perl question

Jacinta Richardson jarich at perltraining.com.au
Fri Mar 5 05:40:05 EST 2004


On Thu, 4 Mar 2004, Daniel wrote:

> On Thu, Mar 04, 2004 at 05:50:37PM +1100, Jacinta Richardson wrote:
> > Php has a similar inconsistency.
> > 	$a = 1.5;
> > 	$a--;
> > What's $a?  It certainly isn't 0.5.
> 
> I cannot follow you:
> 
> > echo '<?php $a = 1.5; $a--; print $a."\n"; ?>' | php
> 0.5
> > perl -le '$a = 1.5; $a--; print $a'
> 0.5

Oh good.  They probably finally got around to fixing it then.  :)

	Jacinta




More information about the Programming mailing list