gopikavi has asked for the wisdom of the Perl Monks concerning the following question:
cpfsk.access:#!/usr/bin/local/perl print "Content-Type:text/html\n\n"; open(file,"cpfsk.access"); @project_name=grep { $_ =~ m/^\[/} <file>; close file; print @project_name; #!/usr/bin/local/perl print "Content-Type:text/html\n\n"; open(INFILE,'<',"cpfsk.access"); while($line=<INFILE>) { chomp; $project_name=grep \[*\],$line; print $project_name; } close(INFILE);
expected output: cpfskcpfskTeam = sonkar, mobrien3, dokeeff2, pquinla, hkumar3 [cpfsk:/] * = r @cpfskTeam = rw @serveradmins = rw @svnadmin = rw
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Not enough arguments script with my perl cgi script?
by Anonymous Monk on May 08, 2017 at 06:59 UTC | |
by gopikavi (Initiate) on May 08, 2017 at 07:08 UTC | |
by poj (Abbot) on May 08, 2017 at 10:03 UTC | |
by Anonymous Monk on May 08, 2017 at 08:25 UTC |