[18695] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 863 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed May 9 14:10:31 2001

Date: Wed, 9 May 2001 11:10:10 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <989431810-v10-i863@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Wed, 9 May 2001     Volume: 10 Number: 863

Today's topics:
    Re: Perl 5.6.1 on AIX 4.3.3 does not pass "make test" <hillr@ugs.com>
    Re: Perl 5.6.1 on AIX 4.3.3 does not pass "make test" (H. Merijn Brand)
    Re: Perl 5.6.1 on AIX 4.3.3 does not pass "make test" <hillr@ugs.com>
    Re: PL/SQL and DBI. <Ming.Zhang@ti.com>
    Re: R: Price for work? (ERA)
        R: Search ... <diab.lito@usa.net>
    Re: Search ... <lmoran@wtsg.com>
    Re: unicode support in perl 5.6 -- I'm trying to get it <elijah@workspot.net>
        using MS Access (*.mdb) w/perl? <dab727@yahoo.com>
    Re: using MS Access (*.mdb) w/perl? (Malcolm Dew-Jones)
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Wed, 09 May 2001 08:45:44 -0700
From: Ron Hill <hillr@ugs.com>
Subject: Re: Perl 5.6.1 on AIX 4.3.3 does not pass "make test"
Message-Id: <3AF96628.B460B8F3@ugs.com>

Tony Fitzgerald wrote:
> 
> I am trying to install latest stable perl on AIX.  

[snipped]

Hello,

I have just completed the build of perl 5.6.1 on AIX 4.3.3 ML 0 and here
are the results of the make test

	Making Errno (nonxs)
	cd t && (rm -f perl; /usr/bin/ln -s ../perl perl)
	if (true </dev/tty) >/dev/null 2>&1; then  cd t &&  ./perl TEST
</dev/tty;  else  cd t && PERL_SKIP_TTY_TEST=1  ./perl TEST;  fi
[snipped - Very long list of what passed]


All tests successful.
u=0.51  s=0.53  cu=50.7  cs=31.85  scripts=250  tests=12631

Here is the results of myconfig:

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=aix, osvers=4.3.3.0, archname=aix
    uname='aix ntsaix3 3 4 000980034c00 '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cc', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong',
    optimize='-O',
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -I/usr/local/include'
    ccversion='', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib -b32'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lbind -lnsl -ldbm -ldl -lld -lm -lC -lc -lcrypt -lbsd -lPW
-liconv
    perllibs=-lbind -lnsl -ldl -lld -lm -lC -lc -lcrypt -lbsd -lPW
-liconv
    libc=/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags=' 
-bE:/opt/perl5.6.1/lib/5.6.1/aix/CORE/perl.exp'
    cccdlflags=' ', lddlflags='-bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp
-bE:$(BASEEXT).exp -b noentry -lC -lc -L/usr/local/lib'

The first time I compiled and ran all of the test I received the same
kind of problems that you ran into.
I then ran a make distclean then a configure but this time I used the
malloc that comes with perl ( on AIX the 
default is no) once I did this the make test runs without error ( see
above). I also used the compiler from IBM.
I hope this helps.

Ron


------------------------------

Date: Wed, 09 May 2001 18:42:03 +0200
From: h.m.brand@hccnet.nl (H. Merijn Brand)
To: comp.lang.perl.misc
Subject: Re: Perl 5.6.1 on AIX 4.3.3 does not pass "make test"
Message-Id: <Xns909CBE3C3FA49Merijn@192.0.1.90>

[posted and mailed]

Ron Hill <hillr@ugs.com> wrote in news:3AF96628.B460B8F3@ugs.com:

> Tony Fitzgerald wrote:
>> 
>> I am trying to install latest stable perl on AIX.  
> 
> [snipped]
> 
> Hello,
> 
> I have just completed the build of perl 5.6.1 on AIX 4.3.3 ML 0 and here
> are the results of the make test
> 
>      Making Errno (nonxs)
>      cd t && (rm -f perl; /usr/bin/ln -s ../perl perl)
>      if (true </dev/tty) >/dev/null 2>&1; then  cd t &&  ./perl TEST
></dev/tty;  else  cd t && PERL_SKIP_TTY_TEST=1  ./perl TEST;  fi
> [snipped - Very long list of what passed]
> 
> 
> All tests successful.
> u=0.51  s=0.53  cu=50.7  cs=31.85  scripts=250  tests=12631

Hmm, looks good ;-)

> Here is the results of myconfig:
> 
> Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
>   Platform:
>     osname=aix, osvers=4.3.3.0, archname=aix
>     uname='aix ntsaix3 3 4 000980034c00 '
>     config_args=''
>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=undef use5005threads=undef useithreads=undef
> usemultiplicity=undef
>     useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
>     use64bitint=undef use64bitall=undef uselongdouble=undef
>   Compiler:
>     cc='cc', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
> -qmaxmem=16384 -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong',
>     optimize='-O',
>     cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
> -qmaxmem=16384 -I/usr/local/include'
>     ccversion='', gccversion='', gccosandvers=''

> The first time I compiled and ran all of the test I received the same
> kind of problems that you ran into.
> I then ran a make distclean then a configure but this time I used the
> malloc that comes with perl ( on AIX the 
> default is no) once I did this the make test runs without error ( see
> above). I also used the compiler from IBM.
> I hope this helps.

Yes it does.

What compiler (xlc or vac)? What version?


-- 
H.Merijn Brand    Amsterdam Perl Mongers (http://www.amsterdam.pm.org/)
using perl-5.6.1, 5.7.1 & 626 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
     WinNT 4, Win2K pro & WinCE 2.11 often with Tk800.022 &/| DBD-Unify
ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/


------------------------------

Date: Wed, 09 May 2001 10:03:37 -0700
From: Ron Hill <hillr@ugs.com>
Subject: Re: Perl 5.6.1 on AIX 4.3.3 does not pass "make test"
Message-Id: <3AF97869.C46DC320@ugs.com>

"H. Merijn Brand" wrote:
[snipped]
> 
> Yes it does.
> 
> What compiler (xlc or vac)? What version?
Hi,

I have installed the xlc version that comes with VisualAge C++
Professional 4.0.2 from the cd it is 3.6.6. I have not applied any
patches to this ( if there are any). If there is anything else you need
just let me know.

Ron


------------------------------

Date: Wed, 9 May 2001 11:12:42 -0500
From: "Ming Zhang" <Ming.Zhang@ti.com>
Subject: Re: PL/SQL and DBI.
Message-Id: <9dbq9m$oj5$1@tilde.csc.ti.com>

Thanks Todd, Paul and Ron for the help. I appreciated!





------------------------------

Date: Wed, 09 May 2001 19:36:58 -0400
From: "Martin Quensel (ERA)" <martin.quensel@era.ericsson.se>
To: BUCK NAKED1 <dennis100@webtv.net>
Subject: Re: R: Price for work?
Message-Id: <3AF9D49A.5010508@era.ericsson.se>

BUCK NAKED1 wrote:

> I had someone ask me to do some HTML pages for them and told them $25/hr
> and never heard from them again... though I think that $20-$25/hr is a
> fair price for HTML. On the contrary, If I knew perl well, I think
> $50-$60/hr would a fair price. For an "expert" perler, maybe
> $75-$100/hr.
> 
> Just my 2cents.
> --Dennis

A professional consultant here in Sweden usually charges between (in 
USD) 60 - 150 per hour.

But we also pay more tax in Sweden.

You probably should start asking them what they think is a fair price 
for such a small job. Do not be afraid to propose a high price.
A good samuraj knows what he is worth.

Best Regards
Martin Quensel



------------------------------

Date: Wed, 9 May 2001 19:21:07 +0200
From: "Mario Rizzuti" <diab.lito@usa.net>
Subject: R: Search ...
Message-Id: <s0fK6.10563$oa2.258376@news6.giganews.com>


Zlach <zlach@yahoo.com> wrote in message 9dbglj$3cg$1@ss204.hinet.hr...

> > > I'd like to make a "search" for my web page. Options would be
searching
> by
> > > author and searching by title words.
> > > What is the best and most efficient programming language to do that ?

--

> > Perl and PHP.
> > Maybe PHP is a little bit more efficient vs CGI.
>

--

> Is this complicated to do in Perl  ?

At a general level, that's not complicated. However if you are new to Perl,
as I presume, this is a not so easy script to start with.
I would download some freeware scripts from the web and customize them,
instead of coding from scratch.

Mario Rizzuti




------------------------------

Date: Wed, 09 May 2001 12:12:01 -0400
From: Lou Moran <lmoran@wtsg.com>
Subject: Re: Search ...
Message-Id: <f1rifts6vucu9ekfp4d3ft62g9bmub1qs5@4ax.com>

On Wed, 9 May 2001 15:26:23 +0200, "Zlach" <zlach@yahoo.com> wrote
wonderful things about sparkplugs:

>
>"Todd Smith" <todd@designsouth.net> wrote in message
>news:1eVJ6.78255$U4.17308797@news1.rdc1.tn.home.com...
>> "Zlach" <zlach@yahoo.com> wrote in message
>> news:9d92bi$2uj$1@ss204.hinet.hr...
>> > I'd like to make a "search" for my web page. Options would be searching
>by
>> > author and searching by title words.
>> > What is the best and most efficient programming language to do that ?
>> >
>> > Thanks !
>> > Zlach
>> >
>> >
>> >
>>
>> Just find a free script online that's already built to do that. There are
>> lots of them. Some search engines can stick code in your website to let
>you
>> search your site using their technology. Try that.
>
>Thanks !
>Have you any links for that, maybe ?
>

www.freeperlcode.com

>Zlach
>


--
print "\x{263a}" 


------------------------------

Date: 9 May 2001 17:24:00 GMT
From: Eli the Bearded <elijah@workspot.net>
Subject: Re: unicode support in perl 5.6 -- I'm trying to get it to work l
Message-Id: <eli$0105091323@qz.little-neck.ny.us>

In comp.lang.perl.misc, Ilya Zakharevich  <ilya@math.ohio-state.edu> wrote:
> Eli the Bearded <elijah@workspot.net> wrote:
> > > [I do not know how to set I/O encodings, and whether it is possible at
> > > all.  Perl's Unicode I/O *may* be unfinished, but the processing
> > > *while in Perl* should be pretty good nowadays.]
> > I can prove this wonderful theorem, but I have not way of writing
> > down the proof?
> At the LCD you can tie() a filehandle, and output things byte-by-byte.

Bizarre.

> > Why does using C<cmp> cause it to print differently?
> Again: do not use print() on a handle without a define translation.

It is not just a print() issue. Without printing the string using
C<cmp> will still change the number of bytes.

#!/usr/bin/perl -w
use strict;
require 5.006;
use vars qw( $chr1 $chr2 @oct $oct $len $isutf8 $same );
use charnames qw( :full );      # comes with perl 5.6.0
use Convert::Scalar qw( :utf8 );
# \N{name} is a feature of the charnames module.
$chr1   = "\N{LATIN CAPITAL LETTER J}\N{SKULL AND CROSSBONES}";
@oct    = $chr1 =~ /(.)/g;
$len    = length($chr1);
$oct    = @oct;
$isutf8 = (utf8 $chr1)? "yes" : "no";

print "CHR 1: $oct bytes, $len chars, in <\$chr1>; is utf8? $isutf8\n";

$chr2   = "Jā~X| ";
@oct    = $chr2 =~ /(.)/g;
$len    = length($chr2);
$oct    = @oct;
$isutf8 = (utf8 $chr2)? "yes" : "no";

print "CHR 2: $oct bytes, $len chars, in <\$chr2>; is utf8? $isutf8\n";

print "(<\$chr1> cmp <\$chr2>)";
$same   = ($chr1 cmp $chr2)? "same" : "not same";
print " == $same\n";

print "\n";
print "But after cmp, now <\$chr2> has ";

@oct    = $chr2 =~ /(.)/g;
$len    = length($chr2);
$oct    = @oct;
$isutf8 = (utf8 $chr2)? "yes" : "no";

print "$oct bytes, $len chars; is utf8? $isutf8\n";
print "(<\$chr1> cmp <\$chr2>)";
$same   = ($chr1 cmp $chr2)? "same" : "not same";
print " == $same\n";

__END__

:r! perl -x %
CHR 1: 4 bytes, 2 chars, in <$chr1>; is utf8? yes
CHR 2: 6 bytes, 6 chars, in <$chr2>; is utf8? no
(<$chr1> cmp <$chr2>) == same

But after cmp, now <$chr2> has 7 bytes, 6 chars; is utf8? yes
(<$chr1> cmp <$chr2>) == same


Elijah
------
guess it has to do with internal representation, but is still perplexed


------------------------------

Date: Wed, 9 May 2001 13:23:48 -0400
From: "fiat_lux" <dab727@yahoo.com>
Subject: using MS Access (*.mdb) w/perl?
Message-Id: <tfivl4j3dgf660@corp.supernews.com>

I'm in hot water to get a class project done. Basically I need to be able to
add/delete/query a MS Access 2000 database with perl. I told them not to use
Access, but they wouldn't listen and now there's no other choice.

The extent of my perl/cgi knowledge is only manipulating HTML forms (ie.
emailing the data somewhere, or making "mad-libs" out of the form fields). I
have no clue how to access a database, let alone an MS Access *.mdb one. I
would most grateful if someone had some pointers for me. Even some sample
code would be a life-saver.

Many thanks in advance. This is perl running on Windows, for the record. I'm
using the sambar web server and it's executing perl scripts just fine.




------------------------------

Date: 9 May 2001 11:01:22 -0800
From: yf110@vtn1.victoria.tc.ca (Malcolm Dew-Jones)
Subject: Re: using MS Access (*.mdb) w/perl?
Message-Id: <3af985f2@news.victoria.tc.ca>

fiat_lux (dab727@yahoo.com) wrote:
: I'm in hot water to get a class project done. Basically I need to be able to
: add/delete/query a MS Access 2000 database with perl. I told them not to use
: Access, but they wouldn't listen and now there's no other choice.

: The extent of my perl/cgi knowledge is only manipulating HTML forms (ie.
: emailing the data somewhere, or making "mad-libs" out of the form fields). I
: have no clue how to access a database, let alone an MS Access *.mdb one. I
: would most grateful if someone had some pointers for me. Even some sample
: code would be a life-saver.

: Many thanks in advance. This is perl running on Windows, for the record. I'm
: using the sambar web server and it's executing perl scripts just fine.


DBI  

DBD - specificly the ODBC driver for DBI


Never used this combination so I can't say more.


--
Want to access the command line of your CGI account?  Need to debug your
installed CGI scripts?  Transfer and edit files right from your browser? 

What you need is "ispy.cgi" - visit http://nisoftware.com/ispy.cgi


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V10 Issue 863
**************************************


home help back first fref pref prev next nref lref last post