From b8bf12b07ac296bd878c20951ee6435515bae169 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sat, 4 Jul 2020 15:28:32 +0200 Subject: [PATCH] Remove indirect object notation --- Bot.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Bot.pm b/Bot.pm index 2fc95c2..e259182 100644 --- a/Bot.pm +++ b/Bot.pm @@ -239,16 +239,16 @@ sub sig_usr2 { sub _build_disp { my ($self) = @_; - my $disp = new NDIRC::Dispatcher; + my $disp = NDIRC::Dispatcher->new; - if (my $commands = new IO::File 'commands'){ + if (my $commands = IO::File->new('commands')){ my @commands = split /\W+/, do{local $/; <$commands>}; say "Loading commands from: @commands"; $disp->load(@commands); } %{$self->targets} = (); - my $channels = new IO::File 'channels' or die $!;; + my $channels = IO::File->new('channels') or die $!;; while (<$channels>){ my ($chan, @types) = split /\s+/; say "$chan - @types"; -- 2.39.2