in reply to Re: If I had a Free Two Months...
in thread If I had a Free Two Months...
Why didn't you use File::Find? That solves the infinite loop problem which you've ignored. It works the same as yours except its less buggy and uses system() with distinct arguments to avoid accidental shell processing.
#!perl -w use strict; use File::Find; my $start_dir = shift; find( sub { system @ARGV if -d }, $start_dir );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: If I had a Free Two Months...
by kelan (Deacon) on Jun 22, 2005 at 17:12 UTC | |
by diotalevi (Canon) on Jun 22, 2005 at 17:17 UTC | |
by samizdat (Vicar) on Jun 23, 2005 at 16:51 UTC |