gjoshi has asked for the wisdom of the Perl Monks concerning the following question:
Hi have three variables I parse the string and find out different values and store it in variables as below: Example
Could you please tell me how to do that. Is it possible? thanks --girija$tmp = "37"; $tmp1 = "<="; $tmp2 = "4"; #Now I want to use all these variables in if condition. # I am trying to do following and I am getting an error if($tmp $tmp1 $tmp2) { # do some thing } else { # do some thing }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Scalar found where operator expected -- getting error -- please help
by Athanasius (Archbishop) on Aug 17, 2015 at 04:14 UTC | |
by gjoshi (Sexton) on Aug 17, 2015 at 05:24 UTC | |
by soonix (Chancellor) on Aug 17, 2015 at 08:56 UTC | |
|
Re: Scalar found where operator expected -- getting error - please help
by 1nickt (Canon) on Aug 17, 2015 at 04:33 UTC |