Bart Lateur said:
> So what are these really good for? To get rid of the line terminator, or
> "Record Separator", when reading from a file. That is what they are for,
> that is what we should facilitate. Not the chop()ping or chomp()ing of
> just any string.
>
> So, let's keep in tune with the RFC that started all this: an easier way
> to integrate the functionality of chomp() into the activity of reading
> one line. So let's make the chomp() implicit.
I frequently use chomp in ways that have nothing to do with "reading from
files" and I would bet this is true for everyone here too. For example:
use CGI;
$cgi = new CGI;
$foo = $cgi->param('foo');
#as part of doing stuff to the user input....
chomp $foo;
Are you suggesting that this should not be facilitated? I realize I could
accomplish the same end by using regex but chomp has certain advantages I
like. I would *not* want to see chomp attached to filehandles, if that meant
it wouldn't be available for use with any string.
--Michael