On Mon, Sep 09, 2002 at 03:06:06PM -0700, drieux wrote:
> 
> On Friday, Sep 6, 2002, at 23:26 US/Pacific, pelp wrote:
> >my $change_on = "/FChangeBar Yes/";
> >my $change_off = "/FChangeBar No/";
[snip]
> >     s/$change_on/$change_off/;
> 
> given that you have the "/" elements in the variables,
> you may find it nicer to write that as
> 
>       s!$change_on!$change_off!;
> 
> or you might want to think about removing the "/" elements,
> or guarding them with "\/....\/"....

Are you thinking that the s/// is going to interpret the /'s in the
variables, and end the pattern prematurely?  That is not the case.  It would
only matter if the values were inserted literally, as opposed to being in
variables.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to