[wplug] Perl System Funcion

Matthew T. Engel mengel at allegheny.edu
Mon Sep 3 18:10:20 EDT 2007


Hello.

 

I using perl 5.8.8 on Gentoo 2.6.20.  I am continually having a problem
where the system() function does not interpret (or ignores) the second
scalar variable.

 

Something like System("cd /home/$user/$web_root && ls), does an ls on
/home/$user rather than /home/$user/$web_root.  The system() function
returns 0, I get the same thing if I try system(cd /home/$user && cd
$web_root && ls).

 

Any suggestions much appreciated.

 

Thanks in advance. 

 

Matt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.wplug.org/pipermail/wplug/attachments/20070903/a33fb2db/attachment.html


More information about the wplug mailing list