in reply to expanding scalar content

Just as a point of observation, the double-e means to double evaluate, correct? In the first pass, this would convert $1 to the equivalent string '$var' and then on the second pass, evaluate it to the value of $var. I didn't know you could do that.

Replies are listed 'Best First'.
Re: Re: expanding scalar content
by srawls (Friar) on May 19, 2001 at 03:27 UTC
    >>Just as a point of observation, the double-e means to double evaluate, correct? In the first pass, this would convert $1 to the equivalent string '$var' and then on the second pass, evaluate it to the value of $var. >>

    That is exactly right. You can put as many /e modifiers as you want, and it will be evaluated that many times.

    To solve the problem, you basically have two choices (well, I can think of two, there are probablly more), multiple /e modifiers or symbolic references. Personally, I think that the double-e approach is a bit cleaner than using symbolic references.

    The 15 year old, freshman programmer,
    Stephen Rawls