Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Distinguishing variables from surrounding text

by knobunc (Pilgrim)
on Feb 13, 2003 at 17:41 UTC ( #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


Comment on Re: Re: Distinguishing variables from surrounding text
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
Node Status?
node history
Node Type: note [id://235038]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2014-09-19 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (134 votes), past polls