in reply to Passing variables is as easy as passing gas
Thus, you can get and set these values. This, in case you're wondering, if a very rudimentary datastructure object.use 5.6.0; use strict; package MyConstants; use Exporter; our @ISA = qw(Exporter}; our @EXPORT_OK = qw(Foo Bar); my $foo = 5; sub Foo { $_[0] ? $foo = $_[0] : $foo } my $bar = 3; sub Bar { $_[0] ? $bar = $_[0] : $bar } 1; __END__
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
|---|