in reply to Re: Formatting problem
in thread Formatting problem

Thanks trim and rtrim did it for me ;-)

Replies are listed 'Best First'.
Re^3: Formatting problem
by CountZero (Bishop) on Feb 10, 2009 at 10:52 UTC
    In which module did you find the trim and rtrim functions? Text::Trim perhaps?

    I use

    for ($variable) { s/^\s+//; s/\s+$//; }
    to trim I can type that faster than looking-up the name of the module and checking the syntax of the functions.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James