[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

RE: [FWP] aCertainName.pm



> From: Etienne Grossmann [mailto:etienne@isr.isr.ist.utl.pt]
> Sent: Tuesday, November 09, 1999 08:00
> To: D@i-works.com; Peter@PSDT.com; fwp@technofile.org
> Subject: Re: [FWP] aCertainName.pm
> 
>   Hello,
> 
> sub abs{($_="$_[0]")=~s/^-//}

I don't know what the quotes are for.  And more to the point, why a
return value of true/false is appropriate.

  sub abs{(my$x=$_[0])=~s/^-//;$x}

There.  That's bad enough, but at least it should work right.

-- 
Larry Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com 

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe