fork download
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4.  
  5. sub f {
  6. print "a\n";
  7. 1;
  8. }
  9.  
  10. sub g {
  11. goto &f;
  12. print "b\n";
  13. 2;
  14. }
  15.  
  16. print g . "\n";
Success #stdin #stdout 0s 6132KB
stdin
Standard input is empty
stdout
a
1