MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

PERL: Perl guru?



******    message to minivend-users from "Brian T. Allen" <brian@purenetfx.com>     ******

Hi everyone,
    This will be easy for anyone that knows perl.  How can I look at the
last 2 or 3 digits of a variable (it will always be between 0 and about
100,000) and analyze them?

This
if ($count =~ /000/)  {
checks to see if the variable contains 000, but anywhere in the variable. I
want the if to be true only when the last 3 digits are 000.

    Thanks in advance for your help.

Brian T. Allen
brian@purenetfx.com


-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: