Name : perl-vars-i
| |
Version : 2.000000
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 15:41:51
|
Group : Development/Libraries/Perl
| Source RPM : perl-vars-i-2.000000-lp155.1.1.src.rpm
|
Size : 0.04 MB
| |
Packager : https://www_suse_com/
| |
Summary : Perl pragma to declare and simultaneously initialize global variables
|
Description :
For whatever reason, I once had to write something like
BEGIN { use vars \'$VERSION\'; $VERSION = 3; }
or
our $VERSION; BEGIN { $VERSION = 3; }
and I really didn\'t like typing that much. With this package, I can say:
use vars::i \'$VERSION\' => 3;
and get the same effect.
Also, I like being able to say
use vars::i \'$VERSION\' => sprintf(\"%d.%02d\", q$Revision: 1.3 $ =~ /: (\\d+)\\.(\\d+)/);
use vars::i [ \'$VERSION\' => sprintf(\"%d.%02d\", q$Revision: 1.3 $ =~ /: (\\d+)\\.(\\d+)/), \'$REVISION\'=> \'$Id: GENERIC.pm,v 1.3 2002/06/02 11:12:38 _ Exp $\', ];
Like with \'use vars;\', there is no need to fully qualify the variable name. However, you may if you wish.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-V/15.5/noarch |