Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: What can I do to improve my code - I'm a beginner

by Anonymous Monk
on Aug 12, 2017 at 17:54 UTC ( #1197315=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @files = undef;   #list of files to run script on
    while(my $line = <INPUT>){
        chomp($line);
        push @files, $line;
    }
    
  2. or download this
    my @files = <INPUT>;
    chomp @files;
    
  3. or download this
    my $avg = <IN> + <IN> + <IN> + <IN>
            + <IN> + <IN> + <IN> + <IN>
            + <IN> + <IN> + <IN> + <IN>;
    $avg /= 12;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1197315]
help
Chatterbox?
[zentara]: ... an unatural darkness descends on the realm
[shmem]: eclipse? Java? omg...!
[chacham]: The darkness here is quite natural. Sunset was 1.5 hours ago ...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2017-08-21 18:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (324 votes). Check out past polls.

    Notices?