Skip to content

Commit 968a5e6

Browse files
committed
remove indirect object notation
1 parent de6fc4d commit 968a5e6

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

lib/Apache/Session/Lock/File.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Apache::Session::Lock::File - Provides mutual exclusion using flock
178178
179179
use Apache::Session::Lock::File;
180180
181-
my $locker = new Apache::Session::Lock::File;
181+
my $locker = Apache::Session::Lock::File->new;
182182
183183
$locker->acquire_read_lock($ref);
184184
$locker->acquire_write_lock($ref);
@@ -218,7 +218,7 @@ method is provided for implementing that policy. You can use the C<clean>
218218
method of this module to remove files unmodified in the last $age seconds.
219219
Example:
220220
221-
my $l = new Apache::Session::Lock::File;
221+
my $l = Apache::Session::Lock::File->new;
222222
$l->clean('/var/lock/sessions', 3600) #remove files older than 1 hour
223223
224224
=head2 acquire_read_lock

lib/Apache/Session/Lock/Null.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Apache::Session::Lock::Null - Does not actually provides mutual exclusion
4343
4444
use Apache::Session::Lock::Null;
4545
46-
my $locker = new Apache::Session::Lock::Null;
46+
my $locker = Apache::Session::Lock::Null->new;
4747
4848
$locker->acquire_read_lock($ref);
4949
$locker->acquire_write_lock($ref);

lib/Apache/Session/Lock/Semaphore.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Apache::Session::Lock::Semaphore - Provides mutual exclusion through semaphores
197197
198198
use Apache::Session::Lock::Semaphore;
199199
200-
my $locker = new Apache::Session::Lock::Semaphore;
200+
my $locker = Apache::Session::Lock::Semaphore->new;
201201
die "no semaphores" unless $locker;
202202
203203
$locker->acquire_read_lock($ref);

lib/Apache/Session/Lock/Sybase.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Apache::Session::Lock::Sybase - Provides mutual exclusion using Sybase
100100
101101
use Apache::Session::Lock::Sybase;
102102
103-
my $locker = new Apache::Session::Lock::Sybase;
103+
my $locker = Apache::Session::Lock::Sybase->new;
104104
105105
$locker->acquire_read_lock($ref);
106106
$locker->acquire_write_lock($ref);

lib/Apache/Session/Store/File.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Apache::Session::Store::File - Store persistent data on the filesystem
150150
151151
use Apache::Session::Store::File;
152152
153-
my $store = new Apache::Session::Store::File;
153+
my $store = Apache::Session::Store::File->new;
154154
155155
$store->insert($ref);
156156
$store->update($ref);

0 commit comments

Comments
 (0)