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

RE: [cobalt-users] CGI Script Question



just small point the delimeter is a : not , (I think - pulls head back down
below firing line)

Jim Carey


-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Kris Dahl
Sent: Tuesday, 15 August 2000 7:21 AM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-users] CGI Script Question


<snip>

essentially it would be something like this

#!/usr/bin/perl

open FH, "/etc/passwd" or die "Can't Open passwd file";
while (<FH>) {
    @columns = split(/,/,$_);
    $username = @columns[0];
    print $username . "\n"; // do whatever you want with it
}


-k


_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users