#!/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__
In reply to Re^2: how to write a subroutine content into a file
by choroba
in thread how to write a subroutine content into a file
by Pal-Cod3r
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |