Since you are new here, a few tips:
- Explain what your problem is in detail
- Post an example of your input data
- Likewise with your expected output
- Show us what code you have tried
- Read the documentation (FAQS) before you post
- If the documentation confused you explain what where and how
- Read the following:
So Having said all of that, perhaps something like this will help you get started
use strict;
use warnings;
our $TEXTFILE="/some/path/file.ext";
open(TEXTFILE) || die "Failed to open $TEXTFILE:$!";
local $/;
my $text=<TEXTFILE>; # Slurp the whole file into one string
print "Matched!" if $text=~/match/;
Now if that didnt help then perhaps you need to think about what additional information you might need to provide us with to help us to help you.
Also you might try the following and see if it provides you with the information you need:
perldoc perlretut
perldoc perlopentut
perldoc perlre
perldoc perlop
perldoc perlvar
HTH
Yves / DeMerphq
--
Have you registered your Name Space? |