| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | # | 
| 2 |  |  |  |  |  |  | # This file is part of autobox-Base64 | 
| 3 |  |  |  |  |  |  | # | 
| 4 |  |  |  |  |  |  | # This software is Copyright (c) 2013 by Chris Weyl. | 
| 5 |  |  |  |  |  |  | # | 
| 6 |  |  |  |  |  |  | # This is free software, licensed under: | 
| 7 |  |  |  |  |  |  | # | 
| 8 |  |  |  |  |  |  | #   The GNU Lesser General Public License, Version 2.1, February 1999 | 
| 9 |  |  |  |  |  |  | # | 
| 10 |  |  |  |  |  |  | package autobox::Base64; | 
| 11 |  |  |  |  |  |  | { | 
| 12 |  |  |  |  |  |  | $autobox::Base64::VERSION = '0.001'; | 
| 13 |  |  |  |  |  |  | } | 
| 14 |  |  |  |  |  |  |  | 
| 15 |  |  |  |  |  |  | # ABSTRACT: Convert strings to and from base64 easily | 
| 16 |  |  |  |  |  |  |  | 
| 17 | 1 |  |  | 1 |  | 28255 | use v5.10; | 
|  | 1 |  |  |  |  | 4 |  | 
|  | 1 |  |  |  |  | 58 |  | 
| 18 | 1 |  |  | 1 |  | 8 | use strict; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 46 |  | 
| 19 | 1 |  |  | 1 |  | 5 | use warnings; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 33 |  | 
| 20 | 1 |  |  | 1 |  | 4 | use utf8; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 6 |  | 
| 21 |  |  |  |  |  |  |  | 
| 22 | 1 |  |  | 1 |  | 955 | use parent 'autobox'; | 
|  | 1 |  |  |  |  | 574 |  | 
|  | 1 |  |  |  |  | 6 |  | 
| 23 |  |  |  |  |  |  |  | 
| 24 | 1 |  |  | 1 |  | 160 | sub import { shift->SUPER::import(STRING => 'autobox::Base64::STRING') } | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  |  | 
| 27 |  |  |  |  |  |  | { | 
| 28 |  |  |  |  |  |  | package autobox::Base64::STRING; | 
| 29 |  |  |  |  |  |  | { | 
| 30 |  |  |  |  |  |  | $autobox::Base64::STRING::VERSION = '0.001'; | 
| 31 |  |  |  |  |  |  | } | 
| 32 | 1 |  |  | 1 |  | 16887 | use strict; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 206 |  | 
| 33 | 1 |  |  | 1 |  | 6 | use warnings; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 38 |  | 
| 34 | 1 |  |  | 1 |  | 5 | use utf8; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 6 |  | 
| 35 |  |  |  |  |  |  |  | 
| 36 | 1 |  |  | 1 |  | 1218 | use MIME::Base64 (); | 
|  | 1 |  |  |  |  | 1179 |  | 
|  | 1 |  |  |  |  | 174 |  | 
| 37 |  |  |  |  |  |  |  | 
| 38 | 3 |  |  | 3 |  | 47 | sub decode_base64 { MIME::Base64::decode_base64(shift) } | 
| 39 | 1 |  |  | 1 |  | 6 | sub from_base64   { goto \&decode_base64               } | 
| 40 |  |  |  |  |  |  |  | 
| 41 | 3 |  | 50 | 3 |  | 31 | sub encode_base64 { MIME::Base64::encode_base64(shift, shift // undef) } | 
| 42 | 1 |  |  | 1 |  | 4 | sub to_base64     { goto \&encode_base64                               } | 
| 43 |  |  |  |  |  |  | } | 
| 44 |  |  |  |  |  |  |  | 
| 45 |  |  |  |  |  |  | !!42; | 
| 46 |  |  |  |  |  |  |  | 
| 47 |  |  |  |  |  |  | __END__ |