Results 1 to 3 of 3

Thread: Perl: Right VB Function?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    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.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  3. #3
    Member
    Join Date
    May 2003
    Posts
    59
    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
  •  



Click Here to Expand Forum to Full Width