Date: Mon, 09 Jul 2001 23:03:35 GMT From: "Kevin Joseph" Subject: Some perl questions Message-Id: I have the following Perl related questions. Any assistance would be highly appreciated. 1. What does the following do ? Does it return the error level ? $rc = 0xffff & system ( "some command" ) ; 2. What does the following do ? Is it for initializing ? $abc = shift ; 3. I have written a couple of cgi scripts which run some system commands. Say print "Content type : text/html" ; .. ... $abc = `ptree 128` ; for $i ( 0 .. $#abc ) { print "$abc[$i]
" ; } .... ... The problem with this script is that it does not print the spaces which appear ( if at all ) before $abc[$i] So instead of outputing 10 some proces 100 some sub process 100 some child process it prints 10 some proces 100 some sub process 100 some child process How do I fix this ? Thanks a bunch ! Kevin.