"Chris Knipe" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, June 16, 2002 10:50 AM
Subject: Re: cutting of last char of a variable
> Check perldoc -f chop
>
> http://www.perldoc.com/perl5.6.1/pod/func/chop.html
>
>
> Sunday, June 16, 2002, 9:29:00 AM,
On Sunday 16 June 2002 01:29, Chris Knipe wrote:
> Hi,
Hello,
> How can I cut off the last char. of a string?
>
> $string = "160700Z";
>
> I want to remove the Z ?
$string =~ s/.$//;
substr $string, -1, 1, '';
chop $string;
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail
Check perldoc -f chop
http://www.perldoc.com/perl5.6.1/pod/func/chop.html
Sunday, June 16, 2002, 9:29:00 AM, Chris Knipe wrote:
> Hi,
> How can I cut off the last char. of a string?
> $string = "160700Z";
> I want to remove the Z ?
> This is to import METAR weather data if anyone's interes
Hi,
How can I cut off the last char. of a string?
$string = "160700Z";
I want to remove the Z ?
This is to import METAR weather data if anyone's interested, and if someone
has a script which process and imports the Metar data already, I'd
appreciate it allot :P
--
me
--
To unsubscribe, e-