Mailinglist Archive: opensuse (2532 mails)

< Previous Next >
Re: [opensuse] Quick Perl Question #2 - Why does chomp($float); = "1"?
  • From: Anders Johansson <ajh@xxxxxxxxxx>
  • Date: Sat, 3 May 2008 22:42:48 +0200
  • Message-id: <200805032242.48590.ajh@xxxxxxxxxx>
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.

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

< Previous Next >
Follow Ups