| 1 | package Percent::Underscore; | ||||||||||
| 2 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | our $VERSION = sprintf "%d.%02d", q$Revision: 0.1 $ =~ /(\d+)/g; | |||||||||
| 5 | 2 | ▶ | use Tie::Expression; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | sub import { | ||||||||
|
Subroutine
import: called CC=2 SCAR=7.2
| |||||||||||
| 8 | 1 | ▶ | untie %_ if tied %_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 9 | 1 | tie %_, 'Tie::Expression'; | |||||||||
| 10 | } | ||||||||||
| 11 | |||||||||||
| 12 | 2 | 1; | |||||||||
| 13 | |||||||||||
| 14 | =head1 NAME | ||||||||||
| 15 | |||||||||||
| 16 | Percent::Underscore - let %_ interpolate any expression. | ||||||||||
| 17 | |||||||||||
| 18 | =head1 VERSION | ||||||||||
| 19 | |||||||||||
| 20 | $Id: Underscore.pm,v 0.1 2008/07/01 17:56:27 dankogai Exp dankogai $ | ||||||||||
| 21 | |||||||||||
| 22 | =head1 SYNOPSIS | ||||||||||
| 23 | |||||||||||
| 24 | use Percent::Underscore; | ||||||||||
| 25 | print "PI = $_{ 4 * atan2(1,1) }.\n"; | ||||||||||
| 26 | |||||||||||
| 27 | =head1 DESCRIPTION | ||||||||||
| 28 | |||||||||||
| 29 | This module is just a shothand for C<< tie %_, 'Tie::Expression'; >>. | ||||||||||
| 30 | |||||||||||
| 31 | =head1 SEE ALSO | ||||||||||
| 32 | |||||||||||
| 33 | L<Tie::Expression> | ||||||||||
| 34 | |||||||||||
| 35 | =head1 EXPORT | ||||||||||
| 36 | |||||||||||
| 37 | Nothing. | ||||||||||
| 38 | |||||||||||
| 39 | =head1 AUTHOR | ||||||||||
| 40 | |||||||||||
| 41 | Dan Kogai, C<< <dankogai at dan.co.jp> >> | ||||||||||
| 42 | |||||||||||
| 43 | =head1 BUGS | ||||||||||
| 44 | |||||||||||
| 45 | Please report any bugs or feature requests to C<bug-tie-expression at rt.cpan.org>, or through | ||||||||||
| 46 | the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Tie-Expression>. I will be notified, and then you'll | ||||||||||
| 47 | automatically be notified of progress on your bug as I make changes. | ||||||||||
| 48 | |||||||||||
| 49 | =head1 SUPPORT | ||||||||||
| 50 | |||||||||||
| 51 | You can find documentation for this module with the perldoc command. | ||||||||||
| 52 | |||||||||||
| 53 | perldoc Percent::Underscore | ||||||||||
| 54 | |||||||||||
| 55 | You can also look for information at: | ||||||||||
| 56 | |||||||||||
| 57 | =over 4 | ||||||||||
| 58 | |||||||||||
| 59 | =item * RT: CPAN's request tracker | ||||||||||
| 60 | |||||||||||
| 61 | L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Tie-Expression> | ||||||||||
| 62 | |||||||||||
| 63 | =item * AnnoCPAN: Annotated CPAN documentation | ||||||||||
| 64 | |||||||||||
| 65 | L<http://annocpan.org/dist/Tie-Expression> | ||||||||||
| 66 | |||||||||||
| 67 | =item * CPAN Ratings | ||||||||||
| 68 | |||||||||||
| 69 | L<http://cpanratings.perl.org/d/Tie-Expression> | ||||||||||
| 70 | |||||||||||
| 71 | =item * Search CPAN | ||||||||||
| 72 | |||||||||||
| 73 | L<http://search.cpan.org/dist/Tie-Expression> | ||||||||||
| 74 | |||||||||||
| 75 | =back | ||||||||||
| 76 | |||||||||||
| 77 | =head1 ACKNOWLEDGEMENTS | ||||||||||
| 78 | |||||||||||
| 79 | None so far. | ||||||||||
| 80 | |||||||||||
| 81 | =head1 COPYRIGHT & LICENSE | ||||||||||
| 82 | |||||||||||
| 83 | Copyright 2008 Dan Kogai, all rights reserved. | ||||||||||
| 84 | |||||||||||
| 85 | This program is free software; you can redistribute it and/or modify it | ||||||||||
| 86 | under the same terms as Perl itself. | ||||||||||