On Wed, Jun 4, 2008 at 9:13 PM, KELVIN PHILIP <[EMAIL PROTECTED]> wrote:
snip
> my $var = MyModule::PrintMe-> new($name);
snip
> With this program, when I execute the main, it was not printing "John";
> instead it was printing "MyModule::PrintMe"
snip
When you call a function with -> the item on t
Hi,
Will you please explain how to pass an argument to a subfunction defined in
a perl module? This is wahat i had tried; please correct me if I am wrong.
*Main:*
use MyModule::PrintMe;
$name = "John";
my $var = MyModule::PrintMe-> new($name);
*Module:
*package MyModule::PrintMe;
use Export