in reply to Re: Problem with around BUILDARGS
in thread Problem with around BUILDARGS
I have this error:has 'serverLocation' => (is=>'ro',isa=>'Str',default=>"$Bin/lib/seleni +um-server-standalone-2.0b2.jar"); sub FOREIGNBUILDARGS { my $self = shift; print $self->serverLocation; my %args = ( @_ == 1 ? %{ $_[0] } : @_ ); $args{host}//="localhost"; $args{port}//=4444; $args{browser}//="*firefox"; $args{browser_url}//='http://wwww.google.com'; return %args; }
Can't use string ("Selenium2") as a HASH ref while "strict refs" in us +e at accessor serverLocation defined at /home/saintex/workspace/perl_ +scripts/navigator/classes/Browser/Selenium2.pm line 18.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Problem with around BUILDARGS
by stvn (Monsignor) on Mar 28, 2011 at 17:01 UTC | |
by saintex (Scribe) on Mar 29, 2011 at 14:23 UTC | |
by saintex (Scribe) on Apr 19, 2011 at 16:45 UTC | |
by stvn (Monsignor) on Apr 21, 2011 at 00:49 UTC | |
by saintex (Scribe) on Apr 21, 2011 at 08:38 UTC | |
by stvn (Monsignor) on Apr 21, 2011 at 19:44 UTC | |
|