Sub::QuotelikeSub::Quotelike is a Perl module that allows to define quotelike functions. | |
Download |
Sub::Quotelike Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Rafael Garcia-Suarez
- Publisher web site:
- http://search.cpan.org/~rgarcia/Sub-Quotelike-0.03/lib/Sub/Quotelike.pm
Sub::Quotelike Tags
Sub::Quotelike Description
Sub::Quotelike is a Perl module that allows to define quotelike functions. Sub::Quotelike is a Perl module that allows to define quotelike functions.SYNOPSIS use Sub::Quotelike; sub myq (') { my $s = shift; # Do something with $s... return $s; } sub myqq (") { my $s = shift; # Do something with $s... return $s; } print myq/abc def/; print myqq{abc $def @ghin}; no Sub::Quotelike; # disallows quotelike functions # in the remaining codeThis module allows to define quotelike functions, that mimic the syntax of the builtin operators q(), qq(), qw(), etc.To define a quotelike function that interpolates quoted text, use the new (") prototype. For non-interpolating functions, use ('). That's all.To be polite with some indenters and syntax highlighters, the prototypes ('') and ("") are accepted as synonyms for (') and (""). Requirements: · Perl
Sub::Quotelike Related Software