Re: Need help with Perl and MySQL database data load

From: Martin Kissner (news_at_chaos-net.de)
Date: 01/16/05


Date: 16 Jan 2005 21:06:36 GMT

Oscar wrote :
> Hello,
>
> Thanks for the responses.
>
> I modified my script to declare
> my $user
> my $dsn
> my $pass
> my %args
> and modified my connect command to accomodate the new variables.
> When I ran the script I got the message:
> "Global symbol "$dns" requires explicit package name at sqltst2.pl line 13.
> Global symbol "$DBI requires explicit package name at sqltst2.pl line 14."
>
> [...]
>
> What does the above error mean and how can I fix?

It means, you have a typo in your skript.
my $dsn
"Global symbol "$dns"
$dsn <-> $dns

HTH

-- 
Epur Si Muove (Gallileo Gallilei)


Relevant Pages

  • Re: [OT] Perl CGI script using Win::ODBC module - failed login on
    ... > Ok I have an issue with a CGI script that I have written in Perl using ... > associated with a trusted SQL server connection". ... username and password for the DSN properly in the ODBC manager (i.e., ... It definitely doesn't sound like a Perl problem, ...
    (comp.lang.perl.misc)
  • Perl CGI script using Win::ODBC module - failed login on
    ... Ok I have an issue with a CGI script that I have written in Perl using ... I have a System DSN that I have ... print "Error connecting to $DSN\n"; ...
    (comp.lang.perl.misc)
  • Re: PEAR newbie trying to user PEAR DB and falling at the first hurdle
    ... I use Pear DB too, ... Then check your connection string if that ... $dsn = array( ... a simple connection like so the script just seems to stop but no error ...
    (comp.lang.php)
  • Re: VB Scripting and XP Embedded
    ... Before going to the XPe troubleshooting route it may make sense to check out what's in your ... > script that contains a simple con.open connection string. ... > creating a DSN entry to the database, ... That may also mean you've got problems with OLE DB provider (SQL Server). ...
    (microsoft.public.windowsxp.embedded)
  • Re: FAQ 4.30: How do I capitalize all the words on one line?
    ... Sherm Pendley wrote: ... >> How can I set $LANG in the script? ... > environment before your script runs, or use the setlocale() function ... Epur Si Muove (Gallileo Gallilei) ...
    (comp.lang.perl.misc)

Loading