in reply to Re: more tricks learned from fellow monks
in thread more tricks learned from fellow monks

Yes, I was afraid people would be scared .. in fact, I'm pretty sure that's why the only vote I have at this point is a downvote. :(

As far as the problem you seem to be encountering, my guess is that when you put this in a file...

... you left a line blank at the end - (<0>)[-1] should give you the last line of the file, which will contain the bit where the text comes from. If you remove your last blank line, it should work as expected.



--chargrill
[ whoops - signature hidden for this post, too :) ]

Replies are listed 'Best First'.
Re^3: more tricks learned from fellow monks
by davidrw (Prior) on Feb 01, 2006 at 00:43 UTC
    well, FWIW i upvoted your OP and reply ;)

    But yeah, now it works when i delete the empty line at the end... which i swear i tried first, cause i figured it was trying to use the last line as source.. I think i learned more having to stare at it even closer and try and figure out my problem though ..
    thanks!