in reply to Re: When is not necessarily
in thread When is not necessarily

Is there a way to force it to be a number?

melguin

Replies are listed 'Best First'.
Re: Re: Re: When is not necessarily
by tachyon (Chancellor) on Oct 04, 2001 at 02:43 UTC

    In perl you don't need to force anything to be a number. Use it like a number and it will behave like a number, use it like a string and it will behave like a string.

    print "1 + " . 1 . " = " , eval ( "1 + " . 1 );

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Re: Re: Re: When is not necessarily
by tommyw (Hermit) on Oct 04, 2001 at 02:50 UTC