in reply to Hints for getting this perly...

My 2 cents,

Replies are listed 'Best First'.
Re^2: Hints for getting this perly...
by Animator (Hermit) on May 11, 2005 at 08:55 UTC

    Hmm, apperently I wasn't logged in... (the previous post is mine too)

    Another note: instead of $in_text you can use the .. operator. (something like if (m#<div ...># .. m#</div>#) { ...

    Also, you are doing a match, but not checking if it returns true or false, and then go on using $1... If the match fails then you will end up using $1 from the previous match, and that might corrupt data...

    Update: a good document about the style (I mean the indeting etc) is the perlstyle POD
    The main thing that botters me is that last READ etc start at the same position as your elsif... (or is that only the way it is displayed here?)

      Ah I see, it's just here. Of course I indent my code...dunno why it's fubared here. :(

      However I'd say that the ...-operator won't work, when working line-wise?

Re^2: Hints for getting this perly...
by hynek (Novice) on May 11, 2005 at 09:00 UTC
    Could you elaborate on the style? That's one of the points I'm hunting in special. I'm an old C-fellow and changing habits is hard. :(

    I'll try to implement the rest though and'll post the result here.