ewexperts has asked for the wisdom of the Perl Monks concerning the following question:
Black Death Jesse Gunn The Crimson Shadow Ariana London Legion Scorpio Greg Manix
#!/usr/local/bin/perl use strict; use warnings; use CGI qw/:standard/; use CGI::Carp qw/fatalsToBrowser/; my $wrestlerdir = '/home/ewexpert/public_html/rosterrank'; open(FILE, "$wrestlerdir/wrestlerlist.txt"); my @lines = <FILE>; chop(@lines); foreach my $str (@lines) { chomp(@lines); } close(FILE); foreach my $test (@lines) { open my $fh, "<", "$wrestlerdir/@lines.total" or die "Can't open @line +s.total $!"; my @total = <$fh>; } print header, start_html('Rankings: '), end_html;
Can't open Black Death Jesse Gunn The Crimson Shadow Ariana London Legion Scorpio Greg Mani.total No such file or directory at test.cgi line 21.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Ranking files, largest to smallest
by ikegami (Patriarch) on May 27, 2008 at 05:30 UTC | |
|
Re: Ranking files, largest to smallest
by andreas1234567 (Vicar) on May 27, 2008 at 06:19 UTC | |
|
Re: Ranking files, largest to smallest
by prasadbabu (Prior) on May 27, 2008 at 05:31 UTC | |
|
Re: Ranking files, largest to smallest
by mhearse (Chaplain) on May 27, 2008 at 08:47 UTC | |
|
Re: Ranking files, largest to smallest
by ewexperts (Initiate) on May 27, 2008 at 06:05 UTC | |
by prasadbabu (Prior) on May 27, 2008 at 06:24 UTC | |
by MidLifeXis (Monsignor) on May 27, 2008 at 11:26 UTC | |
|
Re: Ranking files, largest to smallest
by MidLifeXis (Monsignor) on May 27, 2008 at 10:54 UTC | |
by ewexperts (Initiate) on May 28, 2008 at 01:56 UTC |