The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: RE: Re: Axentra Mini Case Kit


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: perl


  • To: <ukha_d@xxxxxxx>
  • Subject: RE: perl
  • From: "Nick Gunn" <ngunn@xxxxxxx>
  • Date: Sun, 24 Feb 2002 19:27:10 -0000
  • Delivered-to: mailing list ukha_d@xxxxxxx
  • Mailing-list: list ukha_d@xxxxxxx; contact ukha_d-owner@xxxxxxx
  • Reply-to: ukha_d@xxxxxxx

Hi Steve,

 

Pretty new to perl myself and still learning.  Can you do a pattern match replacement along the lines of ;

 

$x = s/^ //g;

 

(Replace the first space in the string with nothing)

 

Is it a single space or more than one that you want to replace?

 

Cheers,

 

Nick

 

-----Original Message-----
From: Steve B [mailto:steve@xxxxxxx]
Sent: 24 February 2002 15:53
To: ukha_d@xxxxxxx Subject: [ukha_d] perl

 

I have been bodging up a perl script to drive a serial LCD under freebsd. Its the first perl coding i have ever done.

 

Can a perl wizard tell me how to truncate a space at the left side of a string ?

 

Steve.

 



For more information: http://www.automatedhome.co.uk
Post message: ukha_d@xxxxxxx
Subscribe:  ukha_d-subscribe@xxxxxxx
Unsubscribe:  ukha_d-unsubscribe@xxxxxxx
List owner:  ukha_d-owner@xxxxxxx


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



Yahoo! Groups Sponsor
ADVERTISEMENT

For more information: http://www.automatedhome.co.uk
Post message: ukha_d@xxxxxxx
Subscribe:  ukha_d-subscribe@xxxxxxx
Unsubscribe:  ukha_d-unsubscribe@xxxxxxx
List owner:  ukha_d-owner@xxxxxxx

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.