because saying use $var with $var holding a package name is not possible.#!/usr/bin/perl use strict; use warnings; BEGIN { eval "use $ARGV[0]"; die $@ if $@; shift; # take first arg out of @ARGV }
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re: modules as variables
by shmem
in thread modules as variables
by tcf03
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |