Greetings Monks;
I am trying to intropolate a variable from a different package into a here document as follows:
#! /usr/bin/perl; unshift @INC, "/path/to/package"; print "Introplate variables from which package?"; $package=<STDIN>; use $package; print << EOF; This variable: #heres the intropolation I want to effect: $package::variable originates in package $package. EOF
So the problem I am trying to solve is the intropolation of the package name into the $packagename::variable format. What is the most correct approach to solving this?
In reply to Interpolating Variables as Package Names by dReKurCe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |