Skip to content

Instantly share code, notes, and snippets.

@mshock
Created May 15, 2012 15:21
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 mshock/2702601 to your computer and use it in GitHub Desktop.
Save mshock/2702601 to your computer and use it in GitHub Desktop.
neat documentation variables hack
my %const = map { s/\s+//; $_ }
map { split /\s*=>\s*/ }
grep { /=>/ }
map { split /\n/ } << '=cut';
=pod
This module uses the following constants:
bang_eth => 1
biff => 2
krunch => 3
=cut
@mshock
Copy link
Author

mshock commented May 15, 2012

Just thought this was pretty cool. Source: http://www.perlmonks.org/?node_id=562735

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment