Perl string manipulation

From: jared in ecs (jared_zubke_at_und.nodak.edu)
Date: 10/22/03

  • Next message: Andrew Shitov: "Re: Perl string manipulation"
    Date: 21 Oct 2003 23:15:38 -0700
    
    

    Anyone who can help?

       I need to get rid of the spaces from the contents of a varible.

    example:
    $title= stumble from grace //after it was extracted from afile using substitution

    i need it to be like:
    $title= stumblefromgrace

    i tried using :
    $title=~ s/\s//;
    but it did not seem to work


  • Next message: Andrew Shitov: "Re: Perl string manipulation"