[Israel.pm] how do i cut the first 2 characters/digits of a string?
Gabor Szabo
gabor at pti.co.il
Thu Jul 15 02:10:52 PDT 2004
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
More information about the Perl
mailing list