>Wijaya Edward wrote on [Friday, May 19, 2006 3:56 PM]

Hi Edward,

>Hi all,

>How do you pass a string inside an  under system call.
>I tried to pass a string like this under EMAIL option:


>system("perl mycode.pl -email 'test_string' -type $sometype  -unit 
>$some_unit");

>or

>system("perl mycode.pl -email $receipt_email -type $sometype  -unit 
>$some_unit");

Having white spaces(or a sentence with more than a word) in $receipt_email 
results in this situation.
However we can avoid this by this way

system("perl mycode.pl -email \"$receipt_email\" -type $sometype  -unit 
$some_unit");


>But while debugging for  mycode.pl I can't see the value for  under EMAIL 
>option,
>while I can see the value for TYPE and UNIT option.

>What's wrong with it?


Thanks,
nandakishore saboo.
[Please forgive me if i am wrong, still a learner]

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