Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Distinguishing variables from surrounding text

by knobunc (Pilgrim)
on Feb 13, 2003 at 17:41 UTC ( [id://235038]=note: print w/replies, xml ) Need Help??


in reply to Re: Distinguishing variables from surrounding text
in thread Distinguishing variables from surrounding text

Sorry. To clarify, the reason that I don't like saying ${foo} has nothing to do with that syntax. It is in general fine. However for the most part I don't use that syntax in strings. I prefer to say $foo unless I see that the next character is going to cause problems. However in my given case I don't immediately see that the next character will be a problem because it is the leading < which should be fine. Except that I am rewriting the code deeper down. My question really is how can I make the rewriting safer by making sure that there is something safe where the tag used to be so that what the programmer expects to happen actually happens.

-ben

Replies are listed 'Best First'.
Re: Re: Re: Distinguishing variables from surrounding text
by John M. Dlugosz (Monsignor) on Feb 13, 2003 at 18:06 UTC
    How about
    "."
    That's close, concat, open.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://235038]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-28 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found