in reply to Re: how to write a subroutine content into a file
in thread how to write a subroutine content into a file
#!/usr/bin/perl use warnings; use strict; sub doit { print "How are you?\n"; } seek DATA, 0, 0; while (<DATA>) { print if /^sub doit {/ .. /^}/ } __DATA__
|
|---|