Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by Anonymous Monk
on Aug 10, 2017 at 14:47 UTC ( #1197176=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
         @date1 = ($dt[0], $dt[1], $dt[2], $dt[3], $dt[4], $dt[5]);
    
  2. or download this
    @date1 = @dt[0..5];
    
  3. or download this
        chomp($line1);
        my @mg1 = split(/,/, $line1);
    ...
        my $line3 = <IN>;
        chomp($line3);
        ...
    
  4. or download this
    my ($sum) = split /,/, $line;
    for (2..12) {
       my ($val) = split /,/, <IN>;
       $sum += $val;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1197176]
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 imbibing at the Monastery: (5)
As of 2017-08-21 18:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (324 votes). Check out past polls.

    Notices?