X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FData.pm;h=61a8f4e43cd6d42b69bc0610e4983fe249e4cafb;hb=de7226ca2f77bf5d6fab57c61a6fdeb4fcc52c28;hp=6de2fa2584338ec45aafef89365323b83d890b12;hpb=c29875088440fd6af00925ecd55bf7fb8a59ad4d;p=gruntmaster-data.git diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index 6de2fa2..61a8f4e 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -17,7 +17,7 @@ __PACKAGE__->load_namespaces; use parent qw/Exporter/; our $VERSION = '5999.000_012'; -our @EXPORT = qw/purge/; +our @EXPORT = qw/purge/; ## no critic (ProhibitAutomaticExportation) use Lingua::EN::Inflect qw/PL_N/; use JSON::MaybeXS qw/decode_json/; @@ -186,8 +186,9 @@ sub update_status { my @PURGE_HOSTS = exists $ENV{PURGE_HOSTS} ? split ' ', $ENV{PURGE_HOSTS} : (); my $ht = HTTP::Tiny->new; -sub purge { $ht->request(PURGE => "http://$_$_[0]") for @PURGE_HOSTS } - +sub purge { + $ht->request(PURGE => "http://$_$_[0]") for @PURGE_HOSTS; +} 1;