in reply to Input Output Question
Assuming you want the code in the code folder
poj#!perl use strict; use File::Copy; opendir(DIR,'../input') or die "$!"; while (readdir DIR){ unless (/^[.]{1,2}$/){ print "copying $_\n"; copy("../input/$_","../output/$_") or die "Copy failed for $_ : $!"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Input Output Question
by perlmonk007 (Novice) on Jul 15, 2013 at 07:02 UTC | |
by poj (Abbot) on Jul 15, 2013 at 07:31 UTC | |
by rjt (Curate) on Jul 15, 2013 at 10:21 UTC |