in reply to how to use chop / chomp effectively
Note that you don't want to use chomp because you're looking to remove more than just $/ ... and you don't want to use chop because you don't want to accidentally remove a piece of the folder name..open FILE, '<', 'test.file' or die; while(<FILE>){ s/\s+$//; print "line=[$_]\n"; } close FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to use chop / chomp effectively
by duff (Parson) on Mar 24, 2006 at 02:09 UTC |