Up Prev Next
From: "Veena Castelino" <castelv at hotmail dot com>
Subject: RE: @ symbol
Date: Mar 17 1999 12:14AM
Thanks Robert. I tried it. Didn't work.
>From: Robert Lang
>Subject: RE: @ symbol
>Date: Tue, 16 Mar 1999 17:10:42 -0600
>system("sqr $sqrprogram -xp " . '@' . "$param_file -f$outputfile");
>From: Veena Castelino [mailto:email@example.com]
>Sent: Tuesday, March 16, 1999 4:54 PM
>To: SybPerl Discussion List
>Subject: @ symbol
>Maybe someone can help me with this one...
>In my Perl program (that uses Perl 5 and Sybperl 2.10) I need to make
>OS call (Sun Solaris) to run a SQR report. I pass the parameters to the
>SQR program in a parameter file. However to run the report,I have to
>precede the parameter file by an @ symbol. Since Perl uses the @ sign
>denote a variable, how can I differentiate between the two scenarios?
>there some special character that I have it to precede it by ?
>My code is like this.....
>system("sqr $sqrprogram -xp @$param_file -f$outputfile");
>If I run this line alone on the Unix command line, it works fine. But
>I run it from within the Perl program, it doesn't take the parameter
>file as input (I'm guessing it's b'cos of the @ sign ?)
>Thanks in advance,
>I know variables in Perl begin with a $ or @.
>Get Your Private, Free Email at http://www.hotmail.com
Get Your Private, Free Email at http://www.hotmail.com