#!/usr/bin/perl
while ($uinput ne "quit") {
print "# "; $uinput = <>;
chomp($uinput);
if ($uinput eq "ls") {
open(LS, "ls -AF1 |");
while (<LS>) {
chomp;
push @flist, $_;
}
close(LS);
foreach $file (@flist) {
print "$file\n";
}
}
}
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Offline 2,413 posts
since Dec 2004