
MDTech.us_MAN
Novice
Oct 13, 2012, 8:25 PM
Views: 4597
|
|
Re: [s660117] Using \? in a variable
|
|
|
... The first thing I discovered is that it is impossible to code if ($input eq "?") {$input = "\$input";} presumably because the leading backslash is interpreted as an attempt to create a reference to $input. ... Use:
if ($input eq '?') {$input = '\$input';} When you use ' I don't think variables get parsed at all. Maxwell. Owner and Webmaster of http://MDTech.us
(This post was edited by MDTech.us_MAN on Oct 13, 2012, 8:27 PM)
|