|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Comment on |
| ( #3333=superdoc: print w/ replies, xml ) | Need Help?? |
|
If you're working on a POD document and you want to upload it as a GitHub gist, just add the following to the top:
... and mark the POD file as executable. Then run it. (Many programmers' text editors have a built-in command or hotkey to execute the current file.) Yay, it's uploaded to GitHub as a gist. This should give you a numeric gist identifier. Change the third line to:
Now executing the file will update the existing gist in place. Yet another reason to use POD over another markup language. :-)
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In reply to Self-updating github gists by tobyink
|
|