PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: make test syntax errs in DBlib.pm
Date: Apr 4 2001 8:45PM

Mike.Tellup@smed.com writes:
 > Trying to install sybperl-2.13 on HP-UX 11.00 w/ Perl 5.005_03 (downloaded
 > from HP).  Get the following msg. when running "test make"
 > 
 >         PERL_DL_NONLAZY=1 /usr/bin/perl -I.././blib/arch -I.././blib/lib -I/opt/
 > perl5/lib/PA-RISC1.1/5.003 -I/opt/perl5/lib -e 'use Test::Harness qw(&runtests $

You're using 5.003, not 5.005_03.

 > verbose); $verbose=0; runtests @ARGV;' t/*.t
 > t/bcp...............syntax error at .././blib/lib/Sybase/DBlib.pm line 469, near
 >  "->("

This is the error (in nsql()):

			unless ( $callback->(%data) ) {
			    $db->dbcancel();
			    
You can fix this by using 5.005_03 (which I suggest) or by editing the
two $callback->(...) calls to: &{$callback}->(...) instead.

Michael
-- 
Michael Peppler - Data Migrations Inc. - mpeppler@peppler.org
http://www.mbay.net/~mpeppler - mpeppler@mbay.net
International Sybase User Group - http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com