tame1 has asked for the wisdom of the Perl Monks concerning the following question:
The problem is that if you perl -cw this, it says "Global#!/usr/local/bin/perl -w # # This is a small program meant to output a report in xls format use strict; use DBI; use CGI qw(redirect); use Spreadsheet::WriteExcel; my $query = new CGI; # Let's set up the database handle, etc. fixed variables my $user = "jrobiso2"; my $auth = ""; my $db = "dbi:mysql:personnel"; # and now the database handle my $dbh = DBI->connect($db, $user, $auth) || die "Cannot connect!: $!\ +n$dbh->errstr";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: my and its use
by rlk (Pilgrim) on Nov 16, 2000 at 00:12 UTC | |
|
RE: my and its use
by btrott (Parson) on Nov 16, 2000 at 00:16 UTC | |
by jptxs (Curate) on Nov 16, 2000 at 00:36 UTC | |
by tye (Sage) on Nov 16, 2000 at 00:50 UTC | |
by mirod (Canon) on Nov 16, 2000 at 00:49 UTC | |
|
RE: my and its use
by autark (Friar) on Nov 16, 2000 at 00:14 UTC | |
|
(jeffa) RE: my and its use
by jeffa (Bishop) on Nov 16, 2000 at 00:14 UTC |