view release on metacpan or search on metacpan
lib/Acme/Text/Viceversa.pm view on Meta::CPAN
use 5.008001;
use strict;
use warnings;
use Carp;
use utf8;
our $VERSION = "0.07";
sub new {
my $class = shift;
lib/Acme/Text/Viceversa.pm view on Meta::CPAN
unless $str =~ /^(:?[ -~$list]+)$/o;
my @results = ();
my $string = '';
my $buffer = '';
while ( $string = substr( $str, 0, 1, '' ) or $string eq '0' ){
# some charactors have length 2 even if they were under utf8
if( exists $rot180{$string} ) {
unshift @results, $rot180{$string};
$buffer = '';
}else{
$buffer .= $string;
lib/Acme/Text/Viceversa.pm view on Meta::CPAN
}
1;
__END__
=encoding utf-8
=head1 ATENTION
You have to twist your neck to read this document.
Don't turn your display, it is the sliest way for me.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Throw.pm view on Meta::CPAN
use warnings;
package Acme::Throw;
# ABSTRACT: For when code makes you want to throw something.
use utf8;
our $MSG;
sub import {
my ($class, %args) = @_;
$MSG = $args{-msg} || "WHY WON'T THIS CODE WORK??!?";
my $orig_handler = $SIG{__DIE__};
$SIG{__DIE__} = sub {
binmode(STDERR, ":utf8");
print STDERR "(â¯Â°â¡Â°ï¼â¯ï¸µ â»ââ» $MSG\n";
$SIG{__DIE__} = $orig_handler;
die @_;
};
}
view all matches for this distribution
view release on metacpan or search on metacpan
maint/perlcritic.rc.gen.pl view on Meta::CPAN
#!/usr/bin/env perl
## no critic (Modules::RequireVersionVar)
# ABSTRACT: Write an INI file from a bundle
use 5.008; # utf8
use strict;
use warnings;
use utf8;
our $VERSION = 0.001;
use Carp qw( croak carp );
use Perl::Critic::ProfileCompiler::Util qw( create_bundle );
maint/perlcritic.rc.gen.pl view on Meta::CPAN
my $inf = $bundle->actionlist->get_inflated;
my $config = $inf->apply_config;
{
my $rcfile = path('./perlcritic.rc')->openw_utf8;
$rcfile->print( $config->as_ini, "\n" );
close $rcfile or croak 'Something fubared closing perlcritic.rc';
}
my $deps = $inf->own_deps;
{
my $target = path('./misc');
$target->mkpath if not $target->is_dir;
my $depsfile = $target->child('perlcritic.deps')->openw_utf8;
for my $key ( sort keys %{$deps} ) {
$depsfile->printf( "%s~%s\n", $key, $deps->{$key} );
*STDERR->printf( "%s => %s\n", $key, $deps->{$key} );
}
close $depsfile or carp 'Something fubared closing perlcritic.deps';
view all matches for this distribution
view release on metacpan or search on metacpan
print 2**200; # 1.60693804425899e+60
print big(2)**200; # 1606938044258990275541962092341162602522202993782792835301376
...and much more.
=encoding utf8
=head1 ABSTRACT
About 120 more or less useful perl subroutines lumped together and exported into your namespace.
# - git status
# - git commit -am versjon
# - git push #eller:
# - git push origin master
# - http://pause.perl.org/
# - tegnsett/utf8-kroell
# - https://rt.cpan.org/Dist/Display.html?Queue=Acme-Tools
# http://en.wikipedia.org/wiki/Birthday_problem#Approximations
# memoize_expire() http://perldoc.perl.org/Memoize/Expire.html
# memoize_file_expire()
# }
# $crc = $crc ^ 0xffffffff;
# return $crc;
# }
#
# $maybe_valid_utf8 =~ # https://stackoverflow.com/questions/11709410/regex-to-detect-invalid-utf-8-string
# m/\A(
# [\x09\x0A\x0D\x20-\x7E] # ASCII, or rather: [\x00-\x7F]
# | [\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte
# | \xE0[\xA0-\xBF][\x80-\xBF] # excluding overlongs
# | [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} # straight 3-byte
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/UNIVERSAL/can/t.pm view on Meta::CPAN
__END__
=pod
=encoding utf-8
=head1 NAME
Acme::UNIVERSAL::can::t - the opposite of UNIVERSAL::can
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Umlautify.pm view on Meta::CPAN
$Acme::Umlautify::VERSION = '1.07';
require Exporter;
require DynaLoader;
use utf8;
use warnings;
use strict;
push our @ISA, 'Exporter';
our @EXPORT = qw/umlautify umlautify_latin/;
lib/Acme/Umlautify.pm view on Meta::CPAN
return wantarray ? @out : $out[0];
}
__END__
=encoding utf8
=head1 NAME:
Acme::Umlautify - AÌdÌdÌ UÌmÌlÌaÌuÌtÌsÌ tÌoÌ eÌvÌeÌrÌyÌtÌhÌiÌnÌgÌ!Ì
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Undead.pm view on Meta::CPAN
use strict;
use warnings;
our $VERSION = "0.03";
=encoding utf-8
=head1 NAME
Acme::Undead - The Undead is not die!
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Unicodify.pm view on Meta::CPAN
#
package Acme::Unicodify;
# ABSTRACT: Convert ASCII text into look-somewhat-alike unicode
$Acme::Unicodify::VERSION = '1.202110';
use utf8;
use v5.22;
use strict;
use warnings;
lib/Acme/Unicodify.pm view on Meta::CPAN
my $translate = Acme::Unicodify->new();
$foo = $translate->to_unicode('Hello, World');
$bar = $translate->back_to_ascii($unified_string);
file_to_unicode('/tmp/infile', '/tmp/outfile');
file_back_to_ascii('/tmp/infile', '/tmp/outfile');
=head1 DESCRIPTION
This is intended to translate basic 7 bit ASCII into characters
that use several Unicode features, such as accent marks and
lib/Acme/Unicodify.pm view on Meta::CPAN
Takes an input string that has perhaps previously been produced
by C<to_unicode> and translates the look-alike characters back
into 7 bit ASCII. Any other characters (Unicode or ASCII) are
passed through unchanged.
=head2 file_to_unicode($infile, $outfile)
This method reads the file with the named passed as the first
argument, and produces a new output file with the name passed
as the second argument.
lib/Acme/Unicodify.pm view on Meta::CPAN
case that no codepoints >127 are used).
This also assumes that there is sufficient memory to slurp the
entire contents of the file into memory.
=head2 file_back_to_ascii($infile, $outfile)
This method reads the file with the named passed as the first
argument, and produces a new output file with the name passed
as the second argument.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/VOYAGEGROUP/ConferenceRoom.pm view on Meta::CPAN
package Acme::VOYAGEGROUP::ConferenceRoom;
use 5.008005;
use strict;
use warnings;
use Carp;
use utf8;
use UNIVERSAL::require;
use parent 'Exporter';
binmode STDOUT, ":utf8";
binmode STDERR, ":utf8";
our $VERSION = "0.01";
our @EXPORT = qw/ conference_room /;
use constant FLOOR_PLAN => <<'EOS';
lib/Acme/VOYAGEGROUP/ConferenceRoom.pm view on Meta::CPAN
}
1;
__END__
=encoding utf-8
=head1 NAME
Acme::VOYAGEGROUP::ConferenceRoom - It's new $module
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/VarMess.pm view on Meta::CPAN
sub dont_blow {
%invar = map{$_=>1} @_;
}
sub blow($$;$) {
my ($src, $outputfile) = @_;
my $doc;
if(ref $src){
$doc = PPI::Document->new($$src);
}
else {
lib/Acme/VarMess.pm view on Meta::CPAN
for (@{$doc->find('PPI::Token::Whitespace')}){
$_->{content} = ' ' if $_->{content} eq $/;
}
$doc->save($outputfile);
}
sub find {
$symtable{shift()};
}
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Repository.pm view on Meta::CPAN
}
1;
__END__
=encoding utf-8
#line 128
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Want5000trillion.pm view on Meta::CPAN
1;
__END__
=encoding utf-8
=head1 NAME
Acme::Want5000trillion - I want 5000trillion yen.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Waterkip.pm view on Meta::CPAN
use utf8;
package Acme::Waterkip;
our $VERSION = '0.001';
# ABSTRACT: You should never use this module unless you are a waterkip
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Web/PodDisplay.pm view on Meta::CPAN
=head1 DESCRIPTION
Acme::Web::PodDisplay does nothing. It's used to test how various CPAN web interfaces work with combinations of PM and POD files.
=encoding utf8
=head1 SOURCE
This POD documentation is from the PodDisplay.pm file.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/XSS.pm view on Meta::CPAN
1;
__END__
=for stopwords xmp XSS
=encoding utf8
=head1 NAME
Acme::XSS - "><xmp>XSS Testing
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Repository.pm view on Meta::CPAN
}
1;
__END__
=encoding utf-8
#line 128
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/YAPC/Okinawa/Bus.pm view on Meta::CPAN
XSLoader::load(__PACKAGE__, $VERSION);
1;
__END__
=encoding utf-8
=head1 NAME
Acme::YAPC::Okinawa::Bus - It's Tweet shere
view all matches for this distribution
view release on metacpan or search on metacpan
lib/YourBrainForOnceDude.pod view on Meta::CPAN
=for comment
DO NOT EDIT. This Pod was generated by Swim.
See http://github.com/ingydotnet/swim-pm#readme
=encoding utf8
=head1 NAME
YourBrainForOnceDude - Just use it!
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Zalgo.pm view on Meta::CPAN
=head1 SYNOPSIS
use Acme::Zalgo;
binmode STDOUT, ':utf8';
print zalgo("Hello world\n");
# alternate syntax. NO COMMAS, THEY ARE FORBIDDEN
print HE COMES "Tony The Pony\n";
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/ZeroWidth.pm view on Meta::CPAN
}
1;
__END__
=encoding utf-8
=head1 NAME
Acme::ZeroWidth - Zero-width fingerprinting
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/ZydecoTesting/App1.pm view on Meta::CPAN
__END__
=pod
=encoding utf-8
=head1 NAME
Acme::ZydecoTesting::App1 - test packaging a Zydeco app
view all matches for this distribution
view release on metacpan or search on metacpan
abstract: 'Like constant, except actually not.'
author:
- 'Konrad Borowski <glitchmr@myopera.com>'
build_requires:
Test::More: 0
utf8: 0
configure_requires:
ExtUtils::MakeMaker: 6.30
dynamic_config: 0
generated_by: 'Dist::Zilla version 4.300038, CPAN::Meta::Converter version 2.120921'
license: mit
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/eng2kor.pm view on Meta::CPAN
package Acme::eng2kor;
# ABSTRACT: English to Korean Translator
use utf8;
use Any::Moose;
use Any::Moose '::Util::TypeConstraints';
use JSON qw/decode_json/;
use Const::Fast;
use URI::Escape qw/uri_escape_utf8/;
use HTTP::Request;
use HTTP::Response;
use LWP::UserAgent;
use namespace::autoclean;
lib/Acme/eng2kor.pm view on Meta::CPAN
sub _google_translate {
my ($self, $word) = @_;
$self->text($word) if defined $word;
my $text = uri_escape_utf8($self->text);
my $escaped_uri = sprintf($GOOGLE_TRANSLATE_API_URL, $text, $self->src . '|' . $self->dst);
my $json = $self->get_json($escaped_uri);
$self->translated($json->{responseData}{translatedText});
return $json;
}
lib/Acme/eng2kor.pm view on Meta::CPAN
1;
__END__
=pod
=encoding utf-8
=head1 NAME
Acme::eng2kor - English to Korean Translator
lib/Acme/eng2kor.pm view on Meta::CPAN
version v0.0.2
=head1 SYNOPSIS
use utf8;
use Acme::eng2kor;
binmode STDOUT, ':encoding(UTF-8)';
my $app = Acme::eng2kor->new;
$app->translate('hello');
print $app->text, "\n"; # hello
view all matches for this distribution
view release on metacpan or search on metacpan
package ful;
=pod
=encoding utf-8
=head1 NAME
ful - a useI<ful> "B<f>ind B<u>pper B<l>ib" pragma that ascends dirs to include
module directories in C<@INC>.
view all matches for this distribution
view release on metacpan or search on metacpan
"test" : {
"requires" : {
"FindBin" : "0",
"List::Compare" : "0",
"Test::More" : "0",
"utf8" : "0"
}
}
},
"release_status" : "stable",
"resources" : {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acrux/DBI.pm view on Meta::CPAN
package Acrux::DBI;
use strict;
use utf8;
=encoding utf8
=head1 NAME
Acrux::DBI - Database independent interface for Acrux applications
lib/Acrux/DBI.pm view on Meta::CPAN
my $url = $dbi->url;
$dbi = $dbi->url('sqlite:///tmp/test.db?sqlite_unicode=1');
$dbi = $dbi->url('sqlite:///./test.db?sqlite_unicode=1'); # '/./' will be removed
$dbi = $dbi->url('postgres://foo:pass@localhost/mydb?PrintError=1');
$dbi = $dbi->url('mysql://foo:pass@localhost/test?mysql_enable_utf8=1');
Database connect url
The database connection URL from which all other attributes can be derived.
C<"url"> must be specified before the first call to C<"connect"> is made,
view all matches for this distribution
view release on metacpan or search on metacpan
eg/acrux_log.pl view on Meta::CPAN
#!/usr/bin/perl -w
use strict;
use utf8;
use Acrux::Log;
use IO::Handle;
my $log = Acrux::Log->new(
view all matches for this distribution
view release on metacpan or search on metacpan
lib/ActiveRecord/Simple.pm view on Meta::CPAN
use strict;
use warnings;
our $VERSION = '1.11';
use utf8;
use Carp;
use Scalar::Util qw/blessed/;
use ActiveRecord::Simple::QueryManager;
use ActiveRecord::Simple::Utils qw/all_blessed class_to_table_name load_module/;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Activiti/Rest/Response.pm view on Meta::CPAN
# { "errorMessage": "<errorMessage>", "statusCode": "statusCode" }
#from version 5.17
# { "message": "<http message>", "exception": "<former errorMessage>" }
my $content_hash = JSON::decode_json($res->content);
my $exception = $content_hash->{exception} || $content_hash->{errorMessage};
#can return multiple values (e.g. 'application/json','charset=utf-8')
my $ct = $res->content_type;
my $args = {
status_code => $res->code,
message => $res->message,
content => $res->content,
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
);
sub MY::postamble {
'
htmldocs ::
find lib -name *.pm | sed s/.pm$$// |sed s/^lib.// | xargs -i# pod2html --podroot=. --podpath=lib --infile=lib/#.pm --outfile=html/#.html
'
}
view all matches for this distribution