Michael Hall wrote:
> For being just some innocuous code it doesn't like something, as you
> can see it bombs out on 's/^\s*//g;' and never gets to print 'ok 3'.
> Makes no sense to me, maybe I don't know as much as I thought I did about
> perl :-)
I don't know much about perl either, but I don't see the need for the g
on the end, since it starts with ^, and there can only be one beginning
of the line, surely? Try removing the g and see what happens.
just my 2p
Ben Smithurst http://www.scientia.demon.co.uk/