Skip to content

Instantly share code, notes, and snippets.

@rwstauner
Created January 8, 2015 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwstauner/98f97e6cd64c972d9b71 to your computer and use it in GitHub Desktop.
Save rwstauner/98f97e6cd64c972d9b71 to your computer and use it in GitHub Desktop.
perl, pod, and data tokens
# Module::Faker should prepend 3 lines above this
=head1 NAME
Pod::With::Data::Token - yo
=head1 SYNOPSIS
use warnings;
print <DATA>;
__DATA__
More text
=head1 DESCRIPTION
data handle inside pod is pod but not data
__DATA__
see?
=cut
print "hi\n";
print map { " | $_" } <DATA>;
=head2 EVEN MOAR
not much, though
=cut
__DATA__
data is here
__END__
THE END IS NEAR
=pod
this is pod to a pod reader but DATA to perl
hi
|
| data is here
|
| __END__
|
| THE END IS NEAR
|
|
| =pod
|
| this is pod to a pod reader but DATA to perl
|
NAME
Pod::With::Data::Token - yo
SYNOPSIS
use warnings;
print <DATA>;
__DATA__
More text
DESCRIPTION
data handle inside pod is pod but not data
__DATA__
see?
EVEN MOAR
not much, though
this is pod to a pod reader but DATA to perl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment