--- Adrian Farrell <[EMAIL PROTECTED]> wrote: > Hi, Hi Adrian, > system("date|awk '{print $2,$3}'"); > I get: > awk: syntax error near line 1 > awk: illegal statement near line 1
$1 to $10 are special variables in perl, which gets filled up, when you match a regex. You should escape them, so that perl does not subsitute them beforehand and awk sees it properly. system("date|awk '{print \$2,\$3}'"); Rgds Alok __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>