SVN: toys/rsget.pl/RSGet/Curl.pm

sparky sparky at pld-linux.org
Sat Jul 17 22:00:13 CEST 2010


Author: sparky
Date: Sat Jul 17 22:00:12 2010
New Revision: 11681

Modified:
   toys/rsget.pl/RSGet/Curl.pm
Log:
- require Cwd only if really needed


Modified: toys/rsget.pl/RSGet/Curl.pm
==============================================================================
--- toys/rsget.pl/RSGet/Curl.pm	(original)
+++ toys/rsget.pl/RSGet/Curl.pm	Sat Jul 17 22:00:12 2010
@@ -109,10 +109,10 @@
 sub init
 {
 	$curl_multi = new WWW::Curl::Multi;
-	require Cwd;
 
 	if ( verbose( 1 ) ) {
 		p "Using paths:";
+		require Cwd;
 		foreach ( qw(workdir outdir) ) {
 			my $dir = Cwd::abs_path( setting( $_ ) );
 			my $mkdir = "";


More information about the pld-cvs-commit mailing list