#!/usr/bin/perl while(TRUE) { print "Enter a text\n"; if($_ = ) { print "now write a regexp that matches part of the text\n"; if($regexp = ) { if($_ =~ $regexp) { print "We have a match"; } } } }