On Monday 26 March 2007 07:32, Dave Gray wrote:
> On 3/25/07, Alan <[EMAIL PROTECTED]> wrote:
> > On Sunday 25 March 2007 18:14, Matt Herzog wrote:
> > > This is all I needed. I swear I had " /($searchstring)/; " in there at
> > > some point before . . .  so if I pass it
> > >
> > > -s "\.properties$"
> > >
> > > at the command line, it works as expetcted. Nice.
> >
> > That might be a shell thing?
> >
> > In Linux bash shell those quotes (I think) tell the shell to not
> > interpret anything inside the quotes.
>
> bash quotes work like perl quotes:
>
>  echo "$PS1"
>  echo '$PS1'

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.

-- 
Alan.

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


Reply via email to