[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Per Question - Off Topic
Jack Lauman <jlauman@nwcascades.com> writes:
> I get a currency exchange report emailed to me every night with the
> closing rates on Wall Street and want to convert it to a csv file.
>
> I need to strip the leading and trailing spaces from two numeric
> (floating point) fields: $usd_unit and $units_usd.
You're obviously not that a Perl hacker :-;
Use:
$usd_unit =~ s/^\s+//;
$usd_unit =~ s/\s+$//;
Ciao
Racke
--
Master of Swiss Web 2001: http://www.zweifel.ch/
For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info@cobolt.net; Phone: 0041-1-3884400)