And you would be using ??? instead of croak ??
Jeff Waugh wrote:
>
> <quote who="Terry Collins">
>
> > > $dbh =
> > > DBI->connect("DBI:mysql:$mp3db:$host",$usr,$pswd,{PrintError=>1});
> > > croak "can't connect to MySQL server ($SQLSERVER)" if !defined($dbh);
>
> (Hahahaha... 'croak'... Do American hackers use 'croak'?)
>
> > What do I do with it?
>
> Fill in the blanks!
>
> > Where do the $mp3db, $host, #usr, $pswd get defined?
> > What is $mp3db? Is this your database?
>
> That's the database in your MySQL server, aye. Just assign whatever's
> correct to the variables, or for a quick hack, change the variables to the
> correct strings.
>
> Of course, you shouldn't do that, but you can. :)
>
> > I will try looking for perl stuff at freshmeat and search.cpan.org (if
> > they are both working).
>
> Reading other code is the best way to work out wtf is going on, second only
> to actually writing something yourself... Which you're doing already.
>
> > Sigh, this is another case of O'Reilly books being only for those who
> > already know what they are doing. I spoke to Tim O'Reilly about this
> > about seven years ago, over the Awk book, but it seems he hasn't taken
> > it on board.
>
> O'Reilly books are not generally at the 'tutorial' level. Some are, but most
> are aimed as references, especially for people with familiarity in other
> similar areas. The best way of getting up to speed with an unfamiliar new
> Free Software technology (if books are your thing), is to grab an O'Reilly
> tome.
>
> - Jeff
>
> -- [EMAIL PROTECTED] --------------------------------- http://linux.conf.au/ --
>
> ASCII stupid question, get a stupid ANSI.
>
> --
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://slug.org.au/lists/listinfo/slug
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug