in reply to short dir listing
So either double the number of backslashes, use quotemeta on the string before you send it to the backticks, or change the first line of my example to use single quotes.my $cmd = "echo \\t\\t"; print "$cmd\n"; ### prints: echo \t\t print `$cmd`; ### prints: tt
Update: On second thought, maybe that's not what's happening. On my system, the backslashes were being interpolated the second time by the shell, not the backticks.. At least I think so ;) You're using windows, so I'm not sure what is happening.
blokhead
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: short dir listing
by P0w3rK!d (Pilgrim) on Oct 23, 2002 at 17:59 UTC | |
by Rich36 (Chaplain) on Oct 23, 2002 at 18:04 UTC |