Ajitpal,

[EMAIL PROTECTED] wrote:

Friends,


I am running a perl script as below which is working perfectly and want to replace the hardcoded values with variables. (the script accepts space as the delimiter)

@respon = $placesock->print("./test.pl \"7741266\" \"DEM EXPO\"
\"255.255.255.255\" \n");

and i am doing this

@respon = $placesock->print("./test.pl." ".$param1." ".$param2." ".$param3
\n");


Try doing this instead: (untested)

@respon = $placesock->print("./test.pl \"$param1\" \"$param2\" \"$param3\"\n");

Whats the mistake i am commiting.

i m getting the following error message...

String found where operator expected at mybly.pl line 263, near ""./test.pl
. " " . $param1.""
       (Missing operator before  " . $param1."?)
panic: realloc at mybly.pl line 263.



----------------------------------------------------------------------------
----------------

regards,

Ajitpal Singh,


HTH,

Chuck


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to