in reply to Re: Reading special characters from file?
in thread Reading special characters from file?
quotemeta() did the trick. The problem was occurring because I passed the files to the shell using:
$cmd = 'someshellexe ' . $basepath . '/' . $file; $rc = qx($cmd);
The $ was being interpreted when passed to the shell. Changing this to:
worked like a charm. Thanks to all for the help!$cmd = 'someshellexe ' . $basepath . '/' . $file; $escapedcmd = quotemeta($cmd); $rc = qx($escapedcmd);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Reading special characters from file?
by premchai21 (Curate) on Apr 26, 2001 at 19:13 UTC |