Perhaps s/[-|\.]//g; # replace any dash or (escaped) dot with nothing ----- Original Message ----- From: "Scott" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 04, 2002 7:48 PM Subject: More formatting questions
> First off, thank you to everyone who has helped me dive into perl full > force this week. I am glad I am getting to know the language! > > My question is about formatting. I need to strip a decimal out of a > number and dash out of a date. I am importing a file and then > reformatting it for export to a mainframe. The number's come in like > this: 100.05, I need to strip out the decimal from that and just display > 10005. With dates they are coming in 2002-01-03, here I need to just > display 20020103. > > Thanks in advance. > > -Scott > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]