Putting 'package ' inside a a block eliminates the need to return back to the main package via 'package main' call. ;-)#!/usr/local/bin/perl -w use strict; { package CONFIG; use vars qw($foo); } ....
| "There is no system but GNU, and Linux is one of its kernels." -- Confession of Faith |
In reply to Re: Re: Unique variable names & 'strict vars'
by vladb
in thread Unique variable names & 'strict vars'
by vladb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |