From:                   Alan <[EMAIL PROTECTED]>
> It's a different case here ie not a var, instead it's a command line that's 
> entered into a shell, such command line being passed to Perl.  And the 
> command needs to make it to Perl without getting altered before it gets to 
> Perl.
> 
> -s "\.properties$"
> 
> In that part of the command line, in this case the $ happens to also be a 
> bash 
> shell meta (or possibly interpreted) character.
> 
> In this context, I was alledging that perhaps the quotes (on that command 
> line) tell the bash shell to keep it literal (do not interpret the special 
> character $).
> 
> But, I don't know much.  I guess there's even a way to run a Perl script 
> without going through a shell in order to run the Perl script.  If so, I 
> don't know how to do it.

Sorry, I was not paying attention to the thread so I may be off. If 
you mean from within another script you may use the multiple 
parameter form of system():

system( $^X, $path_to_script, $param1, $param2, $param3);

This way the shell is not involved in any way. Though of course it 
also means that you can't specify any redirection or anything like 
that this way.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to