MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: Writing GlobalSub in minivend.cfg



Hello Shao -

The error message should point you right to the problem:

> Bareword "UserAgent" not allowed while "strict subs" in use at
> (eval 7) line 15, <GLOBAL> chunk 441.
           ^^^^^^^
> Bad GlobalSub 'geturl'
> In line 441 of the configuration file 'minivend.cfg':
     ^^^^^^^^

Take a look at line 15 of your subroutine, which is at line 441 of
minivend.cfg:

> my $ua = new LWP:UserAgent;
                  ^
This should be:

  my $ua = new LWP::UserAgent;
                  ^^

Larry Leszczynski
larryl@furph.com
--
  furph, Inc.	WWW/Unix/Windows Solutions	734-513-7763 (voice)
info@furph.com	   http://www.furph.com		734-513-7759 (FAX)



Search for: Match: Format: Sort by: