There are some things to a CSV file, that are not just easily split(), but
for .htpasswd file split() might be all you need.

Ilya

> -----Original Message-----
> From: Perl DBI [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 12, 2001 1:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re(2): RE: .htpasswd and DBD::CSV
>
>
> [EMAIL PROTECTED] writes:
> Yeah well, to open an .htpasswd you just use split..
>
> open (HT, "<.htpasswd") or die;
> while (chomp ($line = <HT>)) {
>  @flds = split (/:/, $line);
>
>  # do your DBI stuff
> }
>
> this is easy!! what's the problem?
>
> i thought it's like DBD::CSV where i can connect to a CSV file and use
> SQL.  how about DBD::RAM?
>
> tnx guys for your answers... they really help me a lot.
>

Reply via email to