[MacPerl] MLDBM giving error

2001-02-08 Thread Scott R. Godin
#!/usr/bin/perl -w # # ch02/mldbmtest: Demonstrates storing complex data structures in a DBM # file using the MLDBM module. use MLDBM qw( DB_File Data::Dumper ); use Fcntl; ### Remove the test file in case it exists already... unlink 'mldbmtest.dat'; tie my %database1, 'MLDBM',

Re: [MacPerl] MLDBM giving error

2001-02-08 Thread Carl K. Cunningham
> this simple example from "Programming the Perl DBI" gives the following > error under MacPerl: > > # MLDBM error: Second level tie failed, "Invalid argument" > File 'Dev:Pseudo'; Line 32 > # Can't initialize MLDBM file: Invalid argument > > any ideas what I'm/it's doing wrong? Make sure that

Re: [MacPerl] MLDBM giving error

2001-02-08 Thread Scott R. Godin
on 02/08/2001 05:54 AM, Carl K. Cunningham at [EMAIL PROTECTED] wrote: > Make sure that DB_File is installed and working properly, you should be able > to use the following code in order to verify DB_File. > > use DB_File ; > tie(%test,DB_File,"barf.dbf", O_CREAT|O_RDWR, 0777, $DB_HASH) || die ;

Re: [MacPerl] DynaLoader and Runtimes (ie. Help?)...

2001-02-08 Thread Bart Lateur
On Wed, 7 Feb 2001 22:51:35 -0500, Morbus Iff wrote: >Anyways, my silly little script will compile fine with Runtime Builder. >When I run the compiled app, however, I get the following error. Keep in >mind that: > >a) I've "use File::Spec;" in my script. >b) I've "use Exporter;" in my script. >c)

[MacPerl] Tainted environment variables

2001-02-08 Thread Thomas Wegner
Hi all, I'm just testing Graham Barr's Scalar::Util module. This module exports a function tainted(), which allows a boolean test whether or not a variable is tainted. On a Unix machine, the following two tests should be ok, when run with the -T switch: my $key = (keys %ENV)[0]; $var = $ENV{

[MacPerl] Compress::Zlib 1.09

2001-02-08 Thread KIMURA Takeshi
Again with the help of Chris and people on the list, another port has been done. It's not perfect with CFM68K, but I decided to distribute since it seems to work fine with PPC. You can download the archive and the PGP sign from: http://www2.watanabe.arch.waseda.ac.jp/hw/1992/kim/MacPerl/Comprs

Re: [MacPerl] FTP mirroring script?

2001-02-08 Thread robinmcf
Pete Prodoehl <[EMAIL PROTECTED]> wrote: >I'm working on a script to loop thru a set of directories >is already a module or fairly robust script out there to do mirroring >via ftp I'm in the process of writing a script to do the same thing -I have a largish site that gets updated regu

Re: [MacPerl] FTP mirroring script?

2001-02-08 Thread Andy Stevens
You might check Mirror 2.9 at: I have it running on Linux, but I am not sure whether it will run on MacPerl. Andy At 11:32 AM -0700 2/7/01, Pete Prodoehl wrote: >I'm working on a script to loop thru a set of directories and ftp files >to a >remote serve

RE: [MacPerl] FTP mirroring script?

2001-02-08 Thread Pete Prodoehl
I've got a working version now, it's used now on an NT box and sends files to a service bureau on a nightly basis. It's not really a mirror, but a one-way file transfer. I ended up using File::Find and Net::FTP and my own quick n dirty (ok, more dirty that quick:) code... Let me know if you wan

[MacPerl] RE: XML::Simple and Attribute/Non-Attribute Output...

2001-02-08 Thread Grant McLean
> i love XML::Simple for its simplicity, but the order thing > has been kind of a problem for me too. is it possible that > the hash implementation could be changed by XML::Simple so > that it always maintains order? > this may be a ridiculous notion, i haven't explored perl in > this way befo

Re: [MacPerl] FTP mirroring script?

2001-02-08 Thread Paul McCann
Greetings all, Just a quick reference for people trying to reinvent this particular wheel (not that there's anything wrong with that...) You might want to compare your solutions with what Gerard Lanois put together for the Perl Journal a couple of years ago. Might at least stir up a couple of id

[MacPerl] mirror() in LWP::Simple and Runtimes...

2001-02-08 Thread Morbus Iff
Hey guys. I'm using the mirror() routine from LWP::Simple on the Mac. All works wonderfully under MacPerl *until* I try to make a Mac runtime. Then the mirror() doesn't work. get() works fine and as expected. Case in point. This script compiles fine and spits out the file contents: use strict;

[MacPerl] Re: mirror() in LWP::Simple and Runtimes...

2001-02-08 Thread Morbus Iff
Here's even more info about my problem. This is fun. The following code runs fine from the "command line", as it were, but dies with the following error as soon as I try to compile a MacApp: 501 # Protocol scheme 'http' is not supported File 'Dev:Pseudo:LWP:UserAgent.pm'; Line 185 http://www.

[MacPerl] GD.pm on OSX

2001-02-08 Thread Bill Stephenson
Has anyone installed GD.pm on OSX yet? I've tried a few times and GD.pm complained that libgd and libpng are out of date. I've installed pre-compiled binaries of both of these that I got from http://www.mosxsw.com/port/. They look to me like the latest versions. Anyone have a clue as to what I'm