in reply to decode a file

Is the data delimited, then encoded or encoded, then delimited. In otherwords, do you need to do the decode before the split or the decode before the variable assignment?

If you need to the latter, shove a map {} in the middle.

($one, $two, ... $n) = map { decode_base64($_) } split m/\|/, $record;
Note: I don't have the decode function in front of me, but I know others have provided a function for that.

Ivan Heffner
Sr. Software Engineer, DAS Lead
WhitePages.com, Inc.

Replies are listed 'Best First'.
Re^2: decode a file
by Anonymous Monk on May 13, 2005 at 22:23 UTC
    This my good fellow is EXACTLY what I needed. Thank you very much.