ne 03, 2004 12:44 PM
To: [EMAIL PROTECTED]
Subject: printing contents between lines
hi all ,
consider the contentes of file as below
how to print all the line between tools: and # Not a target:
only
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
- Original Message -
From: "Chris Charley" <[EMAIL PROTECTED]>
Newsgroups: perl.beginners
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 7:09 PM
Subject: Re: printing contents between lines
>
> - Original Message -
> From: "Sidhar
- Original Message -
From: "Sidharth" <[EMAIL PROTECTED]>
Newsgroups: perl.beginners
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 3:44 PM
Subject: printing contents between lines
hi all ,
consider the contentes of file as below
[snip file contents]
h
How about:
my $myvar = qq();
$myvar=~s/tools:(.*?)# Not a//sg; print $1;
John
From: "Sidharth" <[EMAIL PROTECTED]>
> hi all ,
> consider the contentes of file as below
>
> ===
> tools:
> # Phony target (prerequisite of .PHONY).
> # Implicit rule s
hi all ,
consider the contentes of file as below
===
tools:
# Phony target (prerequisite of .PHONY).
# Implicit rule search has not been done.
# File does not exist.
# File has not been updated.
# commands to execute (from `Makefile', line 52):
@$(ECHO)