in reply to Problem using chomp on linux
use Data::Dumper; $Data::Dumper::Useqq = 1; ... print Dumper($command)
If you want to remove all trailing white spaces (including carriage return), try $command =~ s/\s+\z//;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem using chomp on linux
by Anonymous Monk on Mar 17, 2009 at 09:05 UTC | |
by Nomad (Pilgrim) on Mar 17, 2009 at 09:23 UTC | |
by ig (Vicar) on Mar 17, 2009 at 18:34 UTC |