How about:
#!/usr/bin/perl -w use strict; open(FH, "/testfile"); while (my $line = <FH>) { last if $line =~ /^## START/; print $line; } close(FH);
In reply to Re: printing up until a certain line within a file
by dvergin
in thread printing up until a certain line within a file
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |