|
-
Dec 19th, 2003, 11:45 AM
#1
Thread Starter
Frenzied Member
Perl: Right VB Function?
How would I get a number of character to remain in a scalar from the right side?
( like in vb dim = right(1, dim))
Last edited by Evan; Dec 19th, 2003 at 11:53 AM.
-
Dec 19th, 2003, 11:57 AM
#2
There ought to be a substr function to do what you want.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Dec 19th, 2003, 03:20 PM
#3
Member
Code:
$dim = substr($dim, length($dim)-1, 1);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|