Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Ranking files, largest to smallest

by MidLifeXis (Monsignor)
on May 27, 2008 at 11:26 UTC ( [id://688649]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl
    use strict;
    ...
    use CGI qw/:standard/;
    use CGI::Carp qw/fatalsToBrowser/;
    
  2. or download this
    my $wrestlerdir = '/home/ewexpert/public_html/rosterrank';
    
    ...
        chomp (@lines = <FILE>);
    
    close(FILE);
    
  3. or download this
    foreach my $test (@lines) {
    open my $fh, "<", "$wrestlerdir/$test.total" or die "Can't open @lines
    +.total $!";
    my @total = <$fh>;
    }
    
  4. or download this
    print header, start_html('Rankings: '), (@lines), end_html;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://688649]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found