sriram83.life has asked for the wisdom of the Perl Monks concerning the following question:
And Module "Mailer" as follows:#!/usr/bin/perl use Mailer; my $circle = Chennai; my $file = "TO_" . "$circle"; print "MailDetails : $Mailer::$file\n";
Now, when i print $Mailer::$file , I should get "sriram.perumalla@ness.com".But, it prints nothing. Can any one suggest me how to get the value of the variable in the perl script which is dynamically named and it's variable value is in other module.Package Mailer; our $TO_Chennai = q(sriram.perumalla@ness.com); 1;
Regards,
Sriram
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dynamically name the variable and get it's value from Module
by Corion (Patriarch) on Apr 28, 2015 at 13:35 UTC | |
|
Re: Dynamically name the variable and get it's value from Module
by Laurent_R (Canon) on Apr 28, 2015 at 17:43 UTC | |
|
Re: Dynamically name the variable and get it's value from Module
by hdb (Monsignor) on Apr 28, 2015 at 13:34 UTC |