bh_perl has asked for the wisdom of the Perl Monks concerning the following question:
if (defined($wildcard) && ($name =~ /$wildcard/)) { $ftp->get("$remotedir/$name","$localdir/$tmp") or $err +=1; if ($err) { print (LOGS "Can't collect file $wildcard from + dir $remotedir\n"); $ftp->quit; last; } else { rename ("$localdir/$tmp","$localdir/$fname"); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to pass regular expression as variable ?
by Eliya (Vicar) on Apr 29, 2011 at 11:01 UTC | |
|
Re: How to pass regular expression as variable ?
by JavaFan (Canon) on Apr 29, 2011 at 11:01 UTC | |
|
Re: How to pass regular expression as variable ?
by Anonymous Monk on Apr 29, 2011 at 13:11 UTC |