Eustaquio has asked for the wisdom of the Perl Monks concerning the following question:
Please show me what's wrong at this code:
Running it under WinNT 4.0 SP6 the "print command" shows the results successful. However, under Win95 the command does not show the results. Can You help me?$comando = "dir c:\\temp"; @result = `$comando`; foreach $line (@result) { print "Linha.....: $line \n"; }
Thanks in Advance.
Eustaquio - jeustaqi@net.em.com.br
System Engineer - BMP - Brazil.
Edit Masem 2001-07-16 - CODE and formatting fixed
|
---|
Replies are listed 'Best First'. | |
---|---|
(jeffa) Re: Back ticks Win95 vs. WinNT
by jeffa (Bishop) on Jul 16, 2001 at 18:16 UTC | |
Re: Back ticks Win95 vs. WinNT
by mexnix (Pilgrim) on Jul 16, 2001 at 19:02 UTC | |
Re: Back ticks Win95 vs. WinNT
by Mungbeans (Pilgrim) on Jul 16, 2001 at 19:41 UTC |