Mojolicious-Command-nopaste

 view release on metacpan or  search on metacpan

lib/Mojolicious/Command/nopaste/Service.pm  view on Meta::CPAN

}

sub paste { die 'Not implemented' }

sub slurp {
  my ($self, @files) = @_;
  @files = @{ $self->files } unless @files;

  my $content = do {
    local $/;
    local @ARGV = @files;
    decode 'UTF-8', <>;
  };

  # Remove trailing newline as some sites won't do it for us
  chomp $content;
  return $content;
}

sub post_to_irc {
  my ($self, $paste) = @_;

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.493 second using v1.00-cache-2.02-grep-82fe00e-cpan-c9a218a2bbc )