in reply to odd behavior with DATA section

Actual problem seems to be that your "tabs" are actually spaces, probably due to editor settings. Use the following for your split:

my ($filename, $filepath) = split '\s+', $line;

unless of course you have spaces in your file names or paths :)


Perl is Huffman encoded by design.

Replies are listed 'Best First'.
Re^2: odd behavior with DATA section
by Nkuvu (Priest) on Jul 23, 2005 at 00:48 UTC
    In this post, maybe. In the file itself, they're actual tabs. I use emacs, and it only untabifies if I tell it to. Which I haven't.

    I did triple check that the DATA lines in question are using real tabs, by the way.

    But just to be sure that I'm sure, I did change the split to use \s+ and it produced the same behavior.