using AWK how to extract text between two same strings

I have a file like: myfile.txt
it is easy to learn awk and begin awk scripting
and awk has got many features
awk is a powerful text processing tool

Now i want to get the text between first awk and immediate awk not the third awk . How to get it ? its urgent pls help me and file is unevenly distributed not in column format

#! /usr/bin/perl -w 
undef $\;
open FH,"<a.txt";
$str=<FH>;
print $1 if ($str=~m/awk(.*?)awk/);

can u explain the meaning of each line , because i dont know perl