Simple question

2003-08-12 Thread Trevor Morrison
Hi, I am trying to compare two arrays to find common numbers in both. For the numbers that are not common to both, I want to write them to a file for my review. I have included the code below, but it is not working as intended. I know that this is a real basic question, but I have been staring

regex question

2003-08-12 Thread Trevor Morrison
Hi, When I run my program with "use warnings". I get the following error: Use of uninitialized value in concatenation (.) or string at miva_order_check.pl line 52, line 40067. Here is the is offending line of code: my $sth =$dbh->prepare("UPDATE miva_orders SET shiptype='$shipping_method',co

RE: Regex Pattern

2003-08-08 Thread Trevor Morrison
03 6:19 PM To: Trevor Morrison Cc: [EMAIL PROTECTED] Subject: Re: Regex Pattern On Aug 7, Trevor Morrison said: >I am trying to use regex to extract the city,state and zip out of a file. >Now, the problem is the city can have more then one word to it like > >San Antonio >San Francis

Regex Pattern

2003-08-08 Thread Trevor Morrison
HI, I am trying to use regex to extract the city,state and zip out of a file. Now, the problem is the city can have more then one word to it like San Antonio San Francisco etc, I have also, bumped into case of 4 or 5 words in the city name! I am looking for a regex expression that will take t

While loop on a file handle

2003-08-06 Thread Trevor Morrison
Hi, I am trying to step through each line of a file that contains orders that were place through a internet shopping cart. I have this code: open(ORDER,$order) or die "Error opening \"$order\": $OS_ERROR\n"; print "HI\n"; while (defined($_ = )) { print "Hi there \n"; I am trying to test

IDE for Perl Development

2003-07-24 Thread Trevor Morrison
HI, Is there any type of IDE that I can use for Perl programming (free of course) that will run both on Windows 2000 and Linux? TIA Trevor -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Data Structures in Perl

2003-07-08 Thread Trevor Morrison
rders;$w++) { print $order[$w]->order_number(); } Note that in the for loop above i am starting $w with 0 and not 1. If u start with 1 and ur @order have only 1 element, it won't print anything because the index start with '0' -Sharad -Original Message---

Data Structures in Perl

2003-07-06 Thread Trevor Morrison
Hi, I am new to using data structures in Perl, but have played with them in C (a long time ago). I have downloaded the Class::Struct::Fields module on my W2K system and all works well. I am finding the documentation a little terse though. I am trying to read into my Perl program orders that was