[Israel.pm] how do i cut the first 2 characters/digits of astring?

Ernst, Yehuda yernst at ndsisrael.com
Thu Jul 15 02:17:50 PDT 2004


sory i did not know about the starter list

how do i join it?

-----Original Message-----
From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il]On Behalf Of Gabor Szabo
Sent: Thursday, July 15, 2004 12:11 PM
To: Perl in Israel
Subject: Re: [Israel.pm] how do i cut the first 2 characters/digits of astring?



print substr($str,0,2) will get you the 2 chars
substr($str,0,2,"") will remove the first two chars.


Yehuda, a few notes:
- It might be better to write your questions in the body of the e-mail and
  not the subject line. Use the subject line only for general idea what is
  your mail about.

- This question (and the previous one you had)
  could perfectly fit to the starter list too

  http://perl.org.il/mailman/listinfo/starter

  Your are welcome to post such questions there.


Gabor


_______________________________________________
Perl mailing list
Perl at perl.org.il
http://perl.org.il/mailman/listinfo/perl
***********************************************************************************
Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster at nds.com and destroy the original message.
***********************************************************************************




More information about the Perl mailing list