Mailinglist Archive: opensuse (2532 mails)

< Previous Next >
Re: [opensuse] Quick Perl Question #2 - Why does chomp($float); = "1"?
  • From: Randall R Schulz <rschulz@xxxxxxxxx>
  • Date: Sat, 3 May 2008 13:45:35 -0700
  • Message-id: <200805031345.35593.rschulz@xxxxxxxxx>
On Saturday 03 May 2008 13:42, Anders Johansson wrote:
On Saturday 03 May 2008 22:25:57 Randall R Schulz wrote:
What "chomp" returns, by the way, is 1 / true to tell you it
changed its argument or 0 / false to tell you it did not alter it.

No, it returns the number of characters deleted.

And I'm the guy who warns people about generalizing from empirical
testing of programming languages and libraries... Well, it certainly
applies to me.


Anders


RRS
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >