MYDan::Util::File
my $file = MYDan::Util::File->new( '/etc/passwd' ); $file->munge( regex => qr/^foo\b/, length => 1, lazy => 1 )->commit();
seek: 'set' or 'end' offset: number of lines from seek position length: number of lines to remove regex: a regular expression lazy: default to end of file if regex match failed line: a set of lines
path: alternative path to commit backup: back up original file
To install MYDan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MYDan
CPAN shell
perl -MCPAN -e shell install MYDan
For more information on module installation, please visit the detailed CPAN module installation guide.