[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Flat files and variable miles



At 7:10 AM -0500 3/31/99, Allan Greenier wrote:
>Greetings,
>I posted a general question last week about doing a CGI script using a
>flat file version of a Filemaker database.
>Noe that I've gotten a look at the database, it's record is about 50
>fields long! So to put each line in a variable would look something
>like:
>
>my $Var1,$Var2,$Var3..$Var50 = @_
>
>Will this work? Or is it impractible?

I expect it should work.  It does seem rather impractical though.

If I were using Fortran, I'd use an array and name 50 constants to access
each element of the array.

In perl, I expect one should think hash.

>I really would like to keep a flat file solution...simplicity you know.

I haven't used any of the db file modules in perl, but I'm not sure that
using them is any less simple than using a flat file - unless you are
trying to use the database from something else other than perl.  It sounds
like you're trying to pull all the records from a filemaker pro database,
munge them, and then put them back, yes?

-Jeff Lowrey
just another perl lurker



===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org