in reply to Re^2: Alternative to substr on unknown length of scalar
in thread Alternative to substr on unknown length of scalar

It's a . (maximum length) before the 6, not a - (justify left)

And it should work everywhere, otherwise you found a bug.

  • Comment on Re^3: Alternative to substr on unknown length of scalar

Replies are listed 'Best First'.
Re^4: Alternative to substr on unknown length of scalar
by periapt (Hermit) on Oct 20, 2004 at 20:09 UTC
    Well, what do you know. Learn something new everyday here at the monestary. I've always overlooked the maximal modifier for strings. Thanks :o)

    PJ
    use strict; use warnings; use diagnostics;