PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

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.
Veena

>From: Robert Lang 
>To: "'castelv@hotmail.com'" 
>Subject: RE: @ symbol
>Date: Tue, 16 Mar 1999 17:10:42 -0600
>
>How about:
>
>system("sqr $sqrprogram -xp " . '@' . "$param_file -f$outputfile");
>
>
>-----Original Message-----
>From:	Veena Castelino [mailto:castelv@hotmail.com]
>Sent:	Tuesday, March 16, 1999 4:54 PM
>To:	SybPerl Discussion List
>Subject:	@ symbol
>
>Folks,
>
>Maybe someone can help me with this one...
>
>In my Perl program (that uses Perl 5 and Sybperl 2.10) I need to make 
an 
>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 
to 
>denote a variable, how can I differentiate between the two scenarios? 
Is 
>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 
if 
>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,
>Veena
>
>
>
>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