in reply to Re^2: Help:getting parts of the strings from a file into managable variables
in thread Help:getting parts of the strings from a file into managable variables

To make my code easier to read, I indent it by four spaces when I quote it. (That way, it doesn't get lost in the surrounding flow of text.) As a result, you'll need to unindent it (or at least the __DATA__ portion) before running it.

Try processing the script through this one liner to remove the leading four spaces:

perl -i.bak -pe's/^ //' the-script.pl # unindent the-script.pl
That ought to do it.

Cheers,
Tom

Replies are listed 'Best First'.
Re^4: Help:getting parts of the strings from a file into managable variables
by my_perl (Initiate) on Nov 12, 2004 at 17:53 UTC
    Hi, thanks again:) what would i need to change if i had spaces before these strings,number of spaces is not constant. Thanks Aida