fork(1) download
  1. #!/usr/bin/perl
  2.  
  3. @input = <STDIN>;
  4. print @input;
  5. print &max(@input);
  6.  
  7. sub max
  8. {
  9. my($m, $n) = @_;
  10. if($m > $n){ $m } else{ $n };
  11. }
Success #stdin #stdout 0s 6044KB
stdin
2 3
stdout
2 32 3