fork download
  1. #!/usr/bin/perl
  2. # your code goes here
  3.  
  4. $\ = "\n";
  5.  
  6. sub fnc {
  7. print "fnc";
  8. }
  9.  
  10. &fnc();
  11.  
  12. *main::fnc = sub {
  13. print "modified";
  14. };
  15.  
  16. &fnc();
Success #stdin #stdout 0s 6044KB
stdin
Standard input is empty
stdout
fnc
modified