Gossamer Forum
Home : General : Perl Programming :

Howto strip the '/' from date...

Quote Reply
Howto strip the '/' from date...
Can someone tell me howto strip the '/' from a variable date.

EG: '4/5/99'
I want to make it look like '4599'

I'm sure there's a quick one line of code for it.

Thanks,

======================
Jacob Wheeler
jacob@123webmaster.com
http://www.123webmaster.com
======================
Quote Reply
Re: Howto strip the '/' from date... In reply to
   Try

$date =~ s/\///g;