in reply to Redefining chomp()
This breaks in a lot of ways.BEGIN { *CORE::GLOBAL::chomp = sub { my $count; for ( @_ ) { $count += $_ =~ s/[\r\n]$//g; } return $count; } }
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Redefining chomp()
by ryantate (Friar) on Mar 24, 2004 at 18:28 UTC | |
by Limbic~Region (Chancellor) on Mar 24, 2004 at 18:42 UTC | |
by Roy Johnson (Monsignor) on Mar 24, 2004 at 18:48 UTC | |
|
Re: Re: Redefining chomp()
by Anonymous Monk on Mar 24, 2004 at 14:19 UTC | |
by dragonchild (Archbishop) on Mar 24, 2004 at 14:58 UTC | |
by amw1 (Friar) on Mar 24, 2004 at 15:18 UTC | |
by biosysadmin (Deacon) on Mar 24, 2004 at 17:49 UTC |