Código
#!usr/bin/perl #USB Manager 0.2 #Coded By Doddy H use Cwd; head(); nave: if ($rta=~/list/) { my @files = coleccionar(getcwd()); for(@files) { if (-f $_) { } else { }}} if ($rta=~/show (.*)/) { my $fu = $1; if (-f $fu or -d $fu) { hideit($fu,"show"); } } if ($rta=~/hide (.*)/) { my $fua = $1; if (-f $fua or -d $fua) { hideit($fua,"hide"); } } if ($rta=~/cd (.*)/) { my $dir = $1; } else { }} if ($rta=~/del (.*)/) { my $file = getcwd()."/".$1; if (-f $file) { } else { } } else { } else { }}} } else { }} my $file = $1; #system(getcwd()."/".$file); } if ($rta=~/help/) { } copyright(); } goto nave; sub coleccionar { close DIR; } sub hideit { use Win32::File; if ($_[1] eq "show") { Win32::File::SetAttributes($_[0],NORMAL); } elsif ($_[1] eq "hide") { Win32::File::SetAttributes($_[0],HIDDEN); } else { } } sub head { } sub copyright { } # The End ?