Hi,

I've got a text file that contains a whole load of TT tags.
What I need to do is get all of these tags into an array.
E.g.

<textfile>
[% FORENAME %] [% SURNAME %]

You Account number is [% ACCT_NO %]
</textfile>
Should give me
@array = qw( FORENAME SURNAME ACCT_NO);

I have read the file into a scalar variable (hey, I can so the easy bit :),
but for the life of me I can't work out a nice simple(ish) way of getting
the tags into an array.
I think it will probably use the map function but I can't figure it out!!

I think my brain is winding down for the weekend!

TIA

Andy



Reply via email to