in reply to Re^2: Need help parsing ambiguously formatted data
in thread Need help parsing ambiguously formatted data

my @records = map { $_ . ' *' } split /*/, join '', @messy_array; chop $records[-1];

Presto!

Update: ***Poof*** It's a dud. ;) See my update down below...


Dave

Replies are listed 'Best First'.
Re^4: Need help parsing ambiguously formatted data
by duff (Parson) on Dec 01, 2004 at 22:11 UTC
    Presto!

    A syntax error! (and at least one semantic error ;-) yes, I know "caveat lector, all code is untested" etc.

      !%#!#@^&^&* stupid metacharacters. ;)

      Abra cadabra.....

      my @records = map { $_ . ' *' } split /\*/, join '', @messy_array;

      ...pay no attention to the man behind the curtain.

      lol. Anyway, this should be a little better.


      Dave