Sparkle1984
Programmer
I am writing a Perl program which reads in text file made up of records of data about different companies (clients). Each individual record in the file starts with a token (= and ends with =). I need to write a regular expression pattern which will split the text file into individual records, by locating all the brackets and equals signs.
I have tried using the following code:
@records = ($records = ~M/(\(= .*? =\))/xg;
but this causes an error.
Thanks for any help.
I have tried using the following code:
@records = ($records = ~M/(\(= .*? =\))/xg;
but this causes an error.
Thanks for any help.