Hi Satya,

Might I suggest to look up a bit into the function's source code?
Because it's, well, pretty normal to call subs like that:
...
some_func_call(-chan_range => "$beg-$end")
...

Of course, $beg and $end variables should be defined already (and contain
numeric values, as I see).
If not, warnings about attempting to interpolate undefined values will be
shown.

It's definitely not ok to use these without double quotation marks:
$beg-$end is just $beg minus $end.

-- iD

2011/11/29 Nemana, Satya <snem...@sonusnet.com>

> Hi
>
>
>
> Sorry for the silly question, but thought someone might help here.(tried
> googling but this may too silly a beginners question for anyone to have
> answered previously)
>
> I need to pass argument to a function like this  -chan_range =>
> "$chs-$che"
>
> Normally when this used which works  -chan_range => "1-24"
>
> However, when I try to put variable values instead of a scalar string, I
> get compilation errors (the errors are in different part of the code
> which is completely clueless)
>
> What is the correct way to pass the values with variable names and - in
> the string?
>
> I tried using \" and without the " also, but nothing helped.
>
>
>
> Thanks in anticipation,
>
>
>
> Regards,
>
> Satya
>
>
>
>

Reply via email to