Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

basicdez's scratchpad

by basicdez (Pilgrim)
on Jun 02, 2004 at 07:42 UTC ( #359249=scratchpad: print w/replies, xml ) Need Help??

%goodfiles = ( "MODEL\.CON" => "1", "ZMD\.IN" => "1", "SCP\.CON" => "1", "MDLUPDT.DAT" => "1", "MKMDL.ERR" => "1", ); opendir (DIR, "."); @files = readdir (DIR); foreach $file (@files) { print $file; next if ($file =~ /^\./); next if -d "$file"; $file =~ s/\s*$//; $file = "\U$file"; next if ($goodfiles{$file}); print $file; $garbage{$file}++; } closedir (DIR);
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
Discipulus second time; no questions.. o tempora o mores..
[1nickt]: I understood the first version ;-)

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-11-24 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (354 votes). Check out past polls.

    Notices?