Hi again!!
#!/usr/bin/perl -w
print $ENV{'HOMEPATH'};
print ">";
chomp($newdir = <stdin>);
chdir($newdir) ||
die "cannot chdir to $newdir: $!";
opendir(DOT, ".") ||
die "cannot open dir . $!";
foreach (sort readdir(DOT)) {
print "$_\n";
}
closedir (DOT);
I have written this code where the program starts in my homecatalog..
Say I want to execute a program under..say C:\Program...what do I write in my code then?
system('ping 127.0.0.1'); My last answer I get whas this but it dident tell me much - Iam pretty new to this as you understand now
HELP :(