
May 19th, 2000, 05:45 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
>>#!/usr/bin/perl -w
>>use CGI;
>>print "Content-Type: text/htmlnn";
>>system "ls > temp";
############################################
Why not use the most common way in Perl..
#!/usr/local/bin/perl
open(NEW, "> temp");
print "Content-Type: text/htmlnn";
Or use UNIX 'touch' command to create new file?
#!/usr/local/bin/perl
system("touch temp");
print "Content-Type: text/htmlnn";
############################################
Or use the backtick operator:
#!/usr/local/bin/perl
@ls = `ls temp`;
print "Content-Type: text/htmlnn";
print "@ls";
[This message has been edited by freebsd (edited May 19, 2000).]
|