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: [OT] Battery Charger Bargain


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

Re: perl


  • To: ukha_d@xxxxxxx
  • Subject: Re: perl
  • From: Vince <groups@xxxxxxx>
  • Date: Sun, 24 Feb 2002 19:26:08 +0000
  • Delivered-to: mailing list ukha_d@xxxxxxx
  • Mailing-list: list ukha_d@xxxxxxx; contact ukha_d-owner@xxxxxxx
  • Reply-to: ukha_d@xxxxxxx

At 15:53 24/02/02, you wrote:
>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.

Use a regular expression eg. /^\s*// will match any white space at the
beginning of a string and replace it with nowt.

Vince




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.