Perl string manipulation
From: jared in ecs (jared_zubke_at_und.nodak.edu)
Date: 10/22/03
- Previous message: john brown: "Re: Have perl increment a number that shows up before a delimiter"
- Next in thread: Andrew Shitov: "Re: Perl string manipulation"
- Reply: Andrew Shitov: "Re: Perl string manipulation"
- Reply: Roy Johnson: "Re: Perl string manipulation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: john brown: "Re: Have perl increment a number that shows up before a delimiter"
- Next in thread: Andrew Shitov: "Re: Perl string manipulation"
- Reply: Andrew Shitov: "Re: Perl string manipulation"
- Reply: Roy Johnson: "Re: Perl string manipulation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]