Search Results

Search: Posts Made By: hojung-yoon
6,412
Posted By hojung-yoon
it works
It seems it does work.
or can you explain what you expect for the result exactly?
1,876
Posted By hojung-yoon
I hope this code helps you. #!/usr/bin/perl ...
I hope this code helps you.

#!/usr/bin/perl
use warnings;
use strict;

my %programs;

while (my $line = <DATA>) {
chomp $line;
my( $company, $site, $program, $product, $price) =...
7,402
Posted By hojung-yoon
use 5.010; use warnings; use strict; ...
use 5.010;

use warnings;
use strict;

sub round_by_five {
my ($hour, $min, $sec) = @_;

my $tot = $min * 60 + $sec;
my $rem = $tot % 300;

my $new_min = $rem >= 150 ?...
7,402
Posted By hojung-yoon
implement manually
I think this is the algorithm problem rather than the lagnauge.
What about implementing it manually.


#!/usr/bin/perl
use 5.010;

use warnings;
use strict;

sub round_by_five {
my...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 01:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy