Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Joel Spolsky: Can your programming language do this?.
Umm, yes it can....
#!/usr/bin/perl
sub cook_time { ($hours, $min) = @_; $result = "$hours hours and $min minutes\n"; return $result; }
sub animal { $animal = shift; return $animal; }
sub cook_animal { ($get_animal, $get_time) = @_; return "Cook $get_animal for $get_time"; }
print cook_animal(animal(cow),cook_time(5,23));
There are no comments on this comment yet.
Umm, yes it can....
#!/usr/bin/perl
sub cook_time { ($hours, $min) = @_; $result = "$hours hours and $min minutes\n"; return $result; }
sub animal { $animal = shift; return $animal; }
sub cook_animal { ($get_animal, $get_time) = @_; return "Cook $get_animal for $get_time"; }
print cook_animal(animal(cow),cook_time(5,23));