cletus550 has asked for the wisdom of the Perl Monks concerning the following question:
Ie the hash is not being passed to the subroutine in the module.Odd number of elements in the hash assignment… Cant call method “filename” on an undefined value…
The module contains a subroutine:%swf = ('file' => new Fl ('Myflash.swf'), 'url' => $url); %hash = HoneyClient::Agent::Driver::ActiveContent::Flash->extract(%swf +);
Suggestions for how I could send the parameter in the right way would be gratefully received.sub extract { # Extract arguments. my %args = @_; my $filename = $args{'file'}->filename;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pass hash to module
by toolic (Bishop) on May 29, 2010 at 23:34 UTC | |
by apl (Monsignor) on May 30, 2010 at 13:06 UTC | |
by Anonymous Monk on May 30, 2010 at 13:44 UTC | |
|
Re: Pass hash to module
by biohisham (Priest) on May 30, 2010 at 04:41 UTC | |
|
Re: Pass hash to module
by Anonymous Monk on May 30, 2010 at 02:38 UTC | |
|
Re: Pass hash to module
by Anonymous Monk on May 30, 2010 at 22:58 UTC |