MiniVend Akopia Services

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

RE: PERL: Perl guru?



******    message to minivend-users from "Jeff Carnahan" <tails@dakotacom.net>     ******

This will do the trick:

if ($Number =~ /000$/) {
  # $Number ends in '000'
}



--
<name first="Jeff" last="Carnahan"/>

-----Original Message-----
From: owner-minivend-users@minivend.com
[mailto:owner-minivend-users@minivend.com]On Behalf Of Brian T. Allen
Sent: Thursday, March 11, 1999 3:56 PM
To: minivend-users@minivend.com
Subject: 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


-
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: