Skip to content

Commit

Permalink
no import from POSIX
Browse files Browse the repository at this point in the history
The default import list is *huge*,
and pollutes the local namespace.
  • Loading branch information
renormalist committed Jun 3, 2015
1 parent ae784ed commit fb159fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Data/DPath/Context.pm
Expand Up @@ -13,7 +13,7 @@ use Data::DPath::Filters;
use Iterator::Util;
use List::Util 'min';
#use Sys::CPU;
use POSIX;
use POSIX ();
use Safe;

# run filter expressions in own Safe.pm compartment
Expand Down Expand Up @@ -70,7 +70,7 @@ sub _splice_threads {
return [[]] unless $nr_cargo;

my $threadcount = $THREADCOUNT || 1;
my $blocksize = ceil ($nr_cargo / $threadcount);
my $blocksize = POSIX::ceil ($nr_cargo / $threadcount);

my @result = map {
my $first = $_ * $blocksize;
Expand Down

0 comments on commit fb159fc

Please sign in to comment.