Re: problem with Mime::Lite

2008-06-19 Thread Matthew Whipple
On Thu, 2008-06-19 at 13:08 +0300, Malka Cymbalista wrote: > Thanks for your reply. We tried adding Return-Path but it doesn't get > overwritten and when I look in the Mime headers I see that the Return-Path is > still the user that runs the web process. Is it not getting changed or is your

Re: Sorting a hash

2008-06-03 Thread Matthew Whipple
On Mon, 2008-06-02 at 11:53 -0700, Iain Adams wrote: > Hello, > > I am trying to sort a hash of hashes. > > my code looks like this > > foreach $cnt (sort keys %{ $relations{ $uid }{ "instances" } }){ > print OUT "$cnt 1, "; > } > > This prints out the correct numbers (the keys

Re: parsing SQL statement

2008-05-30 Thread Matthew Whipple
On Fri, 2008-05-30 at 19:24 +0700, beast wrote: > Anyone having suggestion parsing SQL statement? > > It should able to parse: > > BLA BALA BALA... > > VALUES( > 'abcd efg',,999, 'some \"STRING\" and \'STR2\' STR3' 'abcd, def, fghi' > ) > > I'm using tr and then split by "," but it will

Re: learning perl 3rd vs 4th

2008-05-25 Thread Matthew Whipple
On Sun, 2008-05-25 at 10:07 -0700, AndrewMcHorney wrote: > Hello > > I have been reading files with the following command: > > @source_lines = (); > You'd want to use $source_line = to get a single record at a time from the handle > This has worked until I started reading some very large f

Re: Perl beginner seeks help

2008-05-22 Thread Matthew Whipple
On Tue, 2008-05-20 at 22:30 -0700, Mr. low level newb of stupidity ;) wrote: > hello, I am a, well, not a beginner per say, but rather still a > learner of Perl. I guess you could call me a beginner. anyway, I need > some help with my robot. it is not really Perl help, but you guys > could help wi

Re: question regarding how to launch perl script on remote machine

2008-05-19 Thread Matthew Whipple
On Mon, 2008-05-19 at 22:08 +0800, Jeff Peng wrote: > On Mon, May 19, 2008 at 10:01 PM, Matthew Whipple > <[EMAIL PROTECTED]> wrote: > > > > It sounded as though he wanted to run the script on the Linux machine, > > not the server... > > That was maybe not c

Re: question regarding how to launch perl script on remote machine

2008-05-19 Thread Matthew Whipple
On Mon, 2008-05-19 at 21:55 +0800, Jeff Peng wrote: > On Mon, May 19, 2008 at 11:22 AM, Richard Lee <[EMAIL PROTECTED]> wrote: > > > I have thought of writing a simple shell script which launchs a (from > > SERVERK)ssh session into linux machines using user name with initial script > > to run a p

Re: IDE for Perl in Linux

2008-05-03 Thread Matthew Whipple
Dr.Ruud wrote: Rodrigo Tavares schreef: Anybody knows a simple and good IDE Perl for Linux ? http://e-p-i-c.sourceforge.net/ I'd been using gvim but have recently decided to invest in getting familiar with the eclipse framework (which that link would be part of) since the exten

Re: sort without ignoring hyphens

2008-04-02 Thread Matthew Whipple
LC_ALL=C sort echo.txt [EMAIL PROTECTED] wrote: On Mar 29, 3:19 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: [EMAIL PROTECTED] wrote: When I do string comparisons in perl the strings seem to ignore the embedded hyphens. I want to sort strings assuming the 'dictionary' order of the char

Re: readdir formulated badly? gives wrong count

2007-12-03 Thread Matthew Whipple
[EMAIL PROTECTED] wrote: > "Jeff Pang" <[EMAIL PROTECTED]> writes: > > >> On Dec 3, 2007 12:51 PM, <[EMAIL PROTECTED]> wrote: >> >>> "Jeff Pang" <[EMAIL PROTECTED]> writes: >>> mhh? It won't print a newline, it even won't print anything. b/c @ar is empty, for(...) doesn't

Re: "premature end of header" script error

2007-12-02 Thread Matthew Whipple
Ankur wrote: > Hi, > > I am receiving the following error : "Premature end of script headers" > when running my CGI script using a web browser. > > Instead if I execute the script manually at the shell, it executes > successfully. Actually, the script needs to fetch a lot of data from > the databas

Re: readdir formulated badly? gives wrong count

2007-12-02 Thread Matthew Whipple
Rob Dixon wrote: > Matthew Whipple wrote: >> >> The for loop won't execute if it has nothing through which to >> iterate. On my system the for won't execute with an empty list, but >> will once >> when the array is undefined. Changing the above to 

Re: readdir formulated badly? gives wrong count

2007-12-02 Thread Matthew Whipple
Rob Dixon wrote: > Matthew Whipple wrote: >> >> The for loop won't execute if it has nothing through which to >> iterate. On my system the for won't execute with an empty list, but >> will once >> when the array is undefined. Changing the above to 

Re: readdir formulated badly? gives wrong count

2007-12-01 Thread Matthew Whipple
[EMAIL PROTECTED] wrote: > Thanks for taking time to respong and go clear thru the script bit by > bit. > > kens <[EMAIL PROTECTED]> writes: > > [...] > > >> # The following lines are your friend >> use strict; >> use warnings; >> > > I've seen that before but didn't understand why. > > T

Re: How can I sort files by timestamp without slurping?

2007-12-01 Thread Matthew Whipple
icarus wrote: > Thanks Rob and Martin for your inputs. > > I found a solution to my problem. I'm posting it here for whoever > might need it. I'm sure there's a faster solution out there but this > will do just fine. > I had to put the files in an array. :( > The reason is that you cannot sort a

Re: help in if - else loop in perl

2007-11-27 Thread Matthew Whipple
Sayed, Irfan (Irfan) wrote: > Hi All, > > I am getting error while running following script.Error is due to > improper if else loop and curly braces. > > Can you please guide me in placing the braces in right position and > doing proper if..else looping > > My requirement is that I want to quit

Re: Regex Help

2007-11-21 Thread Matthew Whipple
Omega -1911 wrote: >> which isn't an equivalent to yours - it simply makes sure that the >> record contains 'Powerball:' and at least one digit - but I'm sure it is >> adequate. My own solution didn't even do this much checking, since I >> read the OP as saying that all irrelevant data records had

Re: how to get source of of web page which is hosted on the server (which I dont have access).

2007-10-30 Thread Matthew Whipple
Siva Prasad wrote: > > HI Gurus, > > > > > > I am opening a web page using win32::IEAutomation and clicking each > link on the page and reading data.(This page has 177 links). > > > > The above processes occupy more memory, > Make sure that you're not trying to read all 177 links (especially

Re: One sprintf() initializations problem

2007-10-30 Thread Matthew Whipple
jiangfan wrote: > Hi, > > What is wrong with this statement? > > my $time = sprintf( "0x%08x", `date +%s` ); > > I got > > "Use of uninitialized value in sprintf at /opt/MoteWorks/tos/../make/ > scripts/ident_flags line 15." > > Thanks. > > Jiangfan > > > Works for me. Check to ensure that "dat

Re: help on ip addr

2007-10-29 Thread Matthew Whipple
lists user wrote: > Hello, > > I want to do the things below: > > a) get all binded IPs on a redhat linux os.there are maybe more than > one IP,like eth0,eth1,eth0:1 etc. > > b) for each IP,I need to know if it's a private network address (like > 192.168.0.1) or a public network address. > > for th

Re: Hash Variables

2007-10-29 Thread Matthew Whipple
sivasakthi wrote: > On Mon, 2007-10-29 at 17:06 +0530, Kaushal Shriyan wrote: > > > >> >> >> #!/usr/bin/perl -w >> >> %states = ( "California","Sacramento", "Wisconsin","Madison", "New York", >> "Albany"); >> >> print "Capital of Californi

Re: umask

2007-10-27 Thread Matthew Whipple
sam wrote: > Hello everyone! This is my first time posting anywhere about perl, so > be gentle. Let me start off with my script: > > #!/usr/local/bin/perl > #Author: Sam Ganim 10/26/07 > > print "What Lesson are you on? "; > chop($lesson = ); > > print "How many exercises are there? "; > chop($exer

Re: Parsing Bounced Emails

2007-10-25 Thread Matthew Whipple
Nigel Peck wrote: > > Hi all, > > Just hoping someone might have some advice on what to use to parse > bounced emails and tell me what type of bounces they are, if they are > bounces at all. > > I tried... > > Mail::DeliveryStatus::BounceParser... it doesn't work > > bbounce.com... they don't exist

Re: Another noobie question about perl on Windows - perl running in background

2007-10-25 Thread Matthew Whipple
Ayesha wrote: > Hi all > > Thanks to all who replied to my question yesterday. I am using perl- > express IDE to write a small perl code. Sometimes the code runs for a > long time (infinite loop logical error), I close the editor but > realize that the computer is suddenly running slow. So I have t

Re: How do I replace a part of huge text file

2007-10-24 Thread Matthew Whipple
the_train_man wrote: > On Oct 22, 10:32 am, [EMAIL PROTECTED] (Dr.Ruud) wrote: > >> [EMAIL PROTECTED] schreef: >> >> >>> I would like to replace a part of a really big (4GB) text file. And >>> the contents that I want to change is really a small but continuous >>> portion. Could some one pl

Re: PArsing tables of web page directly on the web.

2007-10-24 Thread Matthew Whipple
Prabu Ayyappan wrote: > Hi Siva, > > Leave the perl script and first try the url in your browser. > > If it works fine means then the code will get you the HTML contecnt of that > page. > > Thanks and Regards, > Prabu.M.A > If you end up able to reach the URL from a browser and somehow not fro

Re: problem runing code | strange Error

2007-10-24 Thread Matthew Whipple
Juan B wrote: > Ok I did it and know I get another error :-( > here goes the error: > Died at /usr/lib/perl5/site_perl/5.8.8/Mail/Mailer.pm > line 284. > > I don't have that module and therefore have no idea what line 284 is or to what it applies, but here are a couple suggestions. > > this is

Re: qx string

2007-10-24 Thread Matthew Whipple
Sayed, Irfan (Irfan) wrote: > Hi All, > > I am executing following line in my perl script. > > chomp(@files = qx("cleartool desc -fmt "%[versions]p\n" > activity:$ENV{"CLEARCASE_ACTIVITY"}")); > > But i am getting following error when i execute the script. > > sh: cleartool desc -fmt %[vers

Re: how to insert rows into database from array/hash using DBI

2007-10-23 Thread Matthew Whipple
[EMAIL PROTECTED] wrote: > I'm trying to grab data from an MS-Access log file and put it into a > fast, read-only database. (I'm thinking SQL Lite at this point.) > Make sure that's it's only read-only after it's written to. Depending on what you're doing with the data it may be easiest and fas

Re: String processing

2007-10-23 Thread Matthew Whipple
Mark Wagner wrote: > I'm working on a program to process Wikipedia pages. Wikipedia pages > can contain templates of the form: > > {{template name > |key = value > |key2 = value2 > |... > }} > > Any value may in turn be a template, with essentially no limit to the > level of nesting. Given a "key

Re: How do I properly use global variables?

2007-10-23 Thread Matthew Whipple
Jeff Pang wrote: > On 10/23/07, monk <[EMAIL PROTECTED]> wrote: > >> I'm having problems accessing a variable outside its subroutine. >> I've tried several combinations too long to write here. Maybe I just >> can't see the forest for the trees. But I'm lost. I need your >> wisdom. >> >> I'd li

Re: (OT) Re: sourcing one perl file from another

2007-10-22 Thread Matthew Whipple
Lawrence Statton wrote: >> It is also is a stand-alone command to interpret Tcl scripts. I'd guess >> Tcl was the original source of source and was adopted by BASH and other >> shells afterwards. I don't know anything about Tcl but maybe it has a >> group of functions along the lines of file-type

Re: (OT) Re: sourcing one perl file from another

2007-10-22 Thread Matthew Whipple
Matthew Whipple wrote: > Chas. Owens wrote: > >> On 10/22/07, Jenda Krynicky <[EMAIL PROTECTED]> wrote: >> snip >> >> >>> I wonder ... what language does this meaning of the verb "to source" >>> come from??? I know I'

Re: (OT) Re: sourcing one perl file from another

2007-10-22 Thread Matthew Whipple
Chas. Owens wrote: > On 10/22/07, Jenda Krynicky <[EMAIL PROTECTED]> wrote: > snip > >> I wonder ... what language does this meaning of the verb "to source" >> come from??? I know I've seen the word used like this a few times >> alerady, but it still sounds completely off. I mean I could >> unde

Re: ftp in ascii mode

2007-10-20 Thread Matthew Whipple
Gunnar Hjalmarsson wrote: > Gunnar Hjalmarsson wrote: >> Net::FTP uses ascii mode by default, which means that the line >> endings were converted also when you transferred the file back to >> your local machine. Consequently, those files should not be identical. > > Correction: They _should_ be ide

Re: Printing size of array unitializes array?

2007-10-19 Thread Matthew Whipple
Matthew Whipple wrote: > yitzle wrote: > >> What are you trying to accomplish? >> What is @files? Did you define it somewhere? Or is it a Perl global >> var I don't know of? >> >> >> > The below is speculation since these questions nee

Re: Printing size of array unitializes array?

2007-10-19 Thread Matthew Whipple
Joseph L. Casale wrote: > Sorry, it is an array I used above this block of code. > jlc > > That could have easily been guessed (that's one of the few options). The question is what's in it and what are you trying to do with it. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMA

Re: Printing size of array unitializes array?

2007-10-19 Thread Matthew Whipple
yitzle wrote: > What are you trying to accomplish? > What is @files? Did you define it somewhere? Or is it a Perl global > var I don't know of? > > The below is speculation since these questions need to be answered. In addition to what is @files I'd add what is $Tmp? > On 10/19/07, Joseph L. Ca

Re: Search for IP address and delete from file

2007-10-18 Thread Matthew Whipple
> > > mv $TMP_FILE $FILE_NAME > > > > Be careful, the 192.168.0.0 can also match a line with 192.168.010 in > > it. See also the -F option of grep. > > > > -- > > Affijn, Ruud > > > > "Gewoon is een tijger." > > > > Good point, bad example (although natural continuation of previous > discuss

Re: Search for IP address and delete from file

2007-10-18 Thread Matthew Whipple
On Fri, 2007-10-19 at 01:55 +0200, Dr.Ruud wrote: > yitzle schreef: > > > If you are on a Linux machine, it might just be easier > > to use the grep command with a shell script. > > > > FILE_NAME="./log" > > TMP_FILE="./tmp" > > IP_TO_REMOVE="192.168.0.0|192.168.0.255" > > > > COUNT=`grep $IP_TO_R

Re: Reading files for values

2007-10-18 Thread Matthew Whipple
Joseph L. Casale wrote: > I have to search for text strings in files and then do something with the > line that matches in one scenario and in another I need to store the contents > of the following n lines. > > In the first requirement I think I have it beat, but I am lost on the second. > I th

Re: Removing line return from variable

2007-10-18 Thread Matthew Whipple
[EMAIL PROTECTED] wrote: > On Thu, October 18, 2007 9:39 am, Matthew Whipple wrote: > >> Paul wrote: >> >>> I am assigned the output of a function to a variable. >>> >>> my$variable = (function); >>> print "$variable\n&qu

Re: printing elements of an arrays of references

2007-10-18 Thread Matthew Whipple
Pedro Soto wrote: > Dear all, > I am trying to make a matrix out of a file (row-columns) using perl. In > particular I would like to print the first row of an array of arrays which > contains the headings of the file. > I tried to do it but I can't print it. If used $AoA[0], I get the reference > t

Re: Removing line return from variable

2007-10-18 Thread Matthew Whipple
Paul wrote: > I am assigned the output of a function to a variable. > > my$variable = (function); > print "$variable\n"; > > The output is: > text > 0 > > So I try this: > > chop my$variable = (function); > print "$variable\n"; > > The output is: > text > *** this is blank space output * > > So

Re: Configuring Apache::DBI in Apache2

2007-10-18 Thread Matthew Whipple
Subhash Chandran wrote: > Hi > > Can anyone help me to configure Apache::DBI to the Apache2 server. > System config: > OS Windows XP > Perl 5.8.8 > Apache 2.2.4 > mod_perl: 2.0.3 > Apache::DBI 1.06 > > I was able to make mod_perl and now the server is mod_perl enabled. But as > per the README

Re: Search for IP address and delete from file

2007-10-17 Thread Matthew Whipple
Matthew Whipple wrote: > yitzle wrote: > >> Take a look at the grep function >> http://perldoc.perl.org/functions/grep.html >> >> Also of potential use is the qr// quote operator: >> http://perldoc.perl.org/perlop.html#Regexp-Quote-Like-Operators >> >

Re: Search for IP address and delete from file

2007-10-17 Thread Matthew Whipple
yitzle wrote: > Take a look at the grep function > http://perldoc.perl.org/functions/grep.html > > Also of potential use is the qr// quote operator: > http://perldoc.perl.org/perlop.html#Regexp-Quote-Like-Operators > > This lets you do: > > my $ip_search = qr/$ip_string/; > my @lines_with_ip = grep

Re: Searching for records in 15000 lines.

2007-10-16 Thread Matthew Whipple
Jenda Krynicky wrote: > From: [EMAIL PROTECTED] > >> Searching for records in 15000 lines. >> >> Have a list of hostnames in a text file. Wanted to take the lines >> matching the hostnames in csv file. must use sub routines or is there >> any module for this? >> >> host.txt >> adms0922 >> adms0

Re: Beginner Reg.Expression Question

2007-10-16 Thread Matthew Whipple
Jenda Krynicky wrote: > > Thanks for the \d info, I did not know they were silly enough to > include some additional unicode characters in \d, I expected those to > be only in the [[:IsNumber:]]. > > It's really sily as there really are characters that match /^\d$/, > yet $char+0 issues a "Argum

Re: OT: Problem Distributing my Perl Program

2007-10-15 Thread Matthew Whipple
> I wonder if your friend would be able to download the file if it had an > extension of .txt or something as opposed to an archive extension. > (Perhaps the AV doesn't even read into the file at all, and only > unintelligently looks at the extension). > > Steve > > I'd pick a binary extension

Re: Controlling Firefox via Perl

2007-10-15 Thread Matthew Whipple
Felix Mater wrote: > I've seen a programm written in Java that, on demand, opens > an url in a firefox window, or, if that already exists, opens the > url in a new tab. See the "new-tab" command line option for "or" part of the question. I'm not sure of the behavior but it should just open a new w

Re: Beginner Reg.Expression Question

2007-10-13 Thread Matthew Whipple
Dr.Ruud wrote: > Well, don't underestimate version number logic. Version numbers can also > be like "1.23.045_21". > > Yes, v-strings are deprecated, but supporting version number logic > isn't. Again: see version.pm. > (the C-version is 6k, the Perl version is 11k) > > I'm not underestimating v

Re: Beginner Reg.Expression Question

2007-10-12 Thread Matthew Whipple
something which theoretically fits into the Perl culture but strays away from the modular ideal and therefore should be (and apparently will be) removed from native support. > > This was about 'double digits', more than about anything else. > > The "Matthew Whipple"

Re: Split question

2007-10-12 Thread Matthew Whipple
There's a comma in the example data provided. Most of the CSV's I've dealt with also quote values which were strings. If this is the case, an ugly solution would be to use something along the lines of '","' as the delimiter, take into account any possible fields which aren't quoted (it should be

Re: copy site contents into pdf file.

2007-10-12 Thread Matthew Whipple
Do you want to create one large PDF? First you need to think about the problem as more of a sequential ordering of information since PDF's don't have hyperlinks. Is this a stripped down example or are you really only dealing with a handful of webpages? Also, is this static data you're dealing wi

Re: Need advise on sending .eml attachment

2007-10-11 Thread Matthew Whipple
I'll leave Jenda to answer whether it's a good use of his module. I'd say if this works for your situation then it works (if there aren't any problems with the users whose mail you are forwarding and their mail clients). I'd still advocate the resending of the original message. I would suggest i

Re: Ftp to GDG dataset

2007-10-11 Thread Matthew Whipple
Can you upload the file manually? If you can't then that's obviously the problem. If you can then make sure that all of the settings are the same in the Perl script (the pwd, port/passive, the exact base name & suffix). Johnson, Reginald (GTI) wrote: > I am trying to ftp files to GDG dataset on

Re: Perl Scalars

2007-10-11 Thread Matthew Whipple
Perl references (like the Perl language itself) are higher level than their C counterparts. Pointers expose the memory address wheres references (to my knowledge and at least not normally) do not. This opens the door to pointer arithmetic and some of the black magic possible with pointers (includ

Re: dyndns perl iptable

2007-10-11 Thread Matthew Whipple
I'm not sure if I understand your problem exactly but it sounds as though you want to use dyndns to resolve client IP's so that you can allow them through your firewall for SSH connections. If this is correct than the dyndns and iptables are on separate machines and the question is misleading. Yo

Re: basic regex question

2007-10-11 Thread Matthew Whipple
The primary problem would be that you're match seems a bit backwards. Try "if ($line =~ m/$file/)" which will cut through any extra formatting output by dir. Jim wrote: > Hi Everyone, > > I am trying to match file & subdir names from a back tic generated list. > I never find anything and there ar

Re: Need advise on sending .eml attachment

2007-10-11 Thread Matthew Whipple
What is the sample code of what you are using? Are you using one of the Send methods? I would recommend in this case not using Mail::Sender and instead using something like Email::Send (with Email::Send::SMTP). Mail::Sender is more geared for the generation of mail messages and the required he

Re: Need advise on sending .eml attachment

2007-10-10 Thread Matthew Whipple
Panda-X wrote: > Hi Matthew, > > Thanks for you help ! =) > > 2007/10/10, Matthew Whipple <[EMAIL PROTECTED]>: > > > > Yes, that's a one mail file, and it's actually the source code for an email, > plain text. Not the mail box. > There's

Re: Beginner Reg.Expression Question

2007-10-10 Thread Matthew Whipple
This wouldn't scale past double digits. If you're going to separate it out you may as well break the minor revisions into it's own variable and then concatenate/format on output...that would also be more easily used with a code management system's built in revision tracking (though this could also

Re: Bubble sort...

2007-10-10 Thread Matthew Whipple
Work inside out. If the inner loop is working properly, then there should be some difference after the initial pass and you won't be left with nothing or infinity (unless that's the trouble loop, but the proper inner loop is easy enough to see..). [EMAIL PROTECTED] wrote: > I'm having problems tr

Re: Need advise on sending .eml attachment

2007-10-10 Thread Matthew Whipple
I'm not sure what exactly qualifies as an ".eml" file, and a quick look appears as though it's somewhat an MS Outlook format and therefore it's questionable whether the data is being modified or not (my strongest association is the Outlook RTF issues several years back). I'm thinking that regardle

Re: Perl Scalars

2007-10-10 Thread Matthew Whipple
It may be easier to understand outside of computer context and delving into pointers/references/memory addresses. I'm sure there are some good tried and true analogies that I can't think of so I'll try to come of up with one that fits well into computers without getting too far from reality or too

Re: How to insert data onto an existing XML file

2007-10-03 Thread Matthew Whipple
Jenda Krynicky wrote: > On 2 Oct 2007 at 10:54, Matthew Whipple wrote: > >> You can't really strictly "append" to a well-formed XML without >> breaking the syntax. You need the properly closed top level element >> at the very least, in addit

Re: How to insert data onto an existing XML file

2007-10-02 Thread Matthew Whipple
You can't really strictly "append" to a well-formed XML without breaking the syntax. You need the properly closed top level element at the very least, in addition to whatever nesting may be going on. An ugly solution would be to chop off the end of whatever file you're dealing with and then recre

Re: win32 serial port

2007-09-26 Thread Matthew Whipple
You are using 2 constructors that may be stepping on each others toes. Opening the port with new may lock the port from being tied later. What is in the $configfile, since it appears as though most of the configuration is done in the script (although that configuration would probably be undone by

Re: Displaying a Link on A Web PAge with image/png header.

2007-09-26 Thread Matthew Whipple
You probably wouldn't want to add the link to an image/png since that probably shouldn't work as it's not something png's should be doing. You'll want to output an html page and embed the image directly within the page source if you can't output a temporary file. Look into the "data:" URI type wh

Re: Strange error

2007-09-25 Thread Matthew Whipple
Some suggestions: rewrite ':standard'; as qw/:standard/; use warnings; check the web server error log for more verbose debugging information It would be a lot easier to diagnose if you know what file or directory isn't being found/accessed. Caronte wrote: Hi everybody. I'm

Re: Process ID

2007-09-24 Thread Matthew Whipple
perldoc -funtie or more thoroughly perldoc perltie untie is the way to go if you're dealing with a tied variable...if you're not then it won't do anything (or at least it shouldn't). The perltie doc will also hint at the greater range of tie'ing available above database hashes. Somu wrote: > I

Re: How to test for "0"

2007-09-24 Thread Matthew Whipple
defined() Zachary Shay wrote: > Is there a way to test for values where zero is valid? > > For instance: > > %a_Hash; > $a_hash{"user_id"} = 0; > $a_hash{"user_name"} = "root" if ($a_hash{"user_id"}); > > print $a_hash{"user_id"} if ($a_hash{"user_id"}); > print $a_hash{"user_name"} if ($a_hash{"u

Re: Process ID

2007-09-24 Thread Matthew Whipple
untie or unlink? You had used unlink previously which closed and deleted a temporary file while close only closes the file which would be the proper way to terminate a pipe such as used in the solution. Somu wrote: > Great! Thanks.. How about using untie instead of close? Can i know , > phat is

Re: mod perl

2007-09-24 Thread Matthew Whipple
It appears as though the user method only returns a value after successful authentication while you're trying to get it before. George wrote: > Hello All, > > I'm having a problem with modperl and I can't figure out if it's my > stupiditry or modperls'. I'd love somebody with some modperl foo to

Re: Mysql database not being updated

2007-09-24 Thread Matthew Whipple
You have two $host variables, the one passed as the parameter will be overwritten by the SOX function which returns the DB host name used for connection. In the Update query that would remain constant for whatever database you connected to. I'm guessing the problem is that you want separate varia

Re: database insert algorithm

2007-09-24 Thread Matthew Whipple
I haven't dealt with MS databases in several years but some of this stuff will likely still apply. First a couple notes on the underlying databases, if you're running Access be sure to compact the database after the insert particularly if this is going to be a repeated process, in addition to