Dave Kettmann wrote:
Hi List,
Hello,
I have a script that takes input ( Formatted: +1########## ). What
it does with the input is read thru a database table and try to find
a match. Here is an example to help clarify this:
+----------------------+------------------------------------------+
| alias | sendto |
+----------------------+------------------------------------------+
| +131489804[0-7][0-9] | sip:[EMAIL PROTECTED] |
+----------------------+------------------------------------------+
The input is first matched to the 'alias' column. So in this case,
+13148980555 would match (because of the regex). After the script
finds a match, it returns the 'sendto' column. Does anyone know how
to get the script to expand the $1 variable? Is it even possible?
^^^^^^ ^^^^^^^^
I've toyed with it for a while, and can't get it right. Any help is
greatly appreciated.
That is a Frequently Asked Question.
perldoc -q "expand variable"
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>