| barewords documentation | Contained in the barewords distribution. |
barewords - create "strictable" barewords
use barewords qw(foo bar); $v = foo; print "$v\n"; # prints foo
this module creates constants whose values are their own names.
Copyright (C) 2005 by Salvador Fandiño <sfandino@yahoo.com>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| barewords documentation | Contained in the barewords distribution. |
package barewords; our $VERSION = '0.01'; require constant; sub import { my %constants = map { $_ => $_ } @_; @_ = (constant => \%constants); goto &constant::import; } 1; __END__