in reply to Re^2: Equal strings don't match!
in thread Equal strings don't match!
The null character does seem to be the only difference between what you have in @CMD and the literal string. Have you tried removing it? You could remove nulls from everything in that array this way:
tr/\0//d for @CMD;
That means, however, that a command line with several arguments (e.g., "echo one two") will have those arguments all stuck together (e.g., "echoonetwo") instead of separated with nulls.
Without knowing what you're really trying to do, it's hard to give good advice. See XY Problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Equal strings don't match!
by pl (Initiate) on Jul 30, 2008 at 19:16 UTC | |
by AltBlue (Chaplain) on Jul 31, 2008 at 02:13 UTC |