Don't ask to ask, just ask | |
PerlMonks |
Re^2: clipcommand.pl (Embed perl into your clipboard)by antirice (Priest) |
on Nov 02, 2007 at 14:28 UTC ( [id://648654]=note: print w/replies, xml ) | Need Help?? |
Actually, it reacts to commands that start with - or '-. The reason I use -- is because I normally use it with SQL Server to generate scripts. The reason for the '- is because I also use VB (yes, boo hiss =/). I work in a Microsoft-only shop and I find that the languages I need to use benefit greatly from code generation. The reason for B::Deparse is so the script can get the source for the anonymous subs that have been generated. If you wish to see the entire subroutine that is generated for a macro, use the fullcodefor macro. codefor reconstructs the macro as you gave it, although it does a bit of cleaning up which I like. As for another example, here's a simple note/recall pair of macros.
To use:
Produces:
In Section
Cool Uses for Perl
|
|