Re: How to map IP address with country

2004-12-23 Thread John W. Krahn
Anish Kumar K. wrote: Hi Hello, Is there any module in perl where I can Map the IP country with the country.. Do you mean something like: http://search.cpan.org/~nwetters/IP-Country-2.18/lib/IP/Country.pm John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

How to map IP address with country

2004-12-23 Thread Anish Kumar K.
Hi Is there any module in perl where I can Map the IP country with the country.. Thanks Anish

Strange Output

2004-12-23 Thread Mallik
Hi Friends, I have the below code. #!/usr/local/perl5.6.1/bin/perl print STDOUT "===Before system call===\n\n"; system("ls -al"); print STDOUT "\n\n===After System Call

Re: Recommend

2004-12-23 Thread Chris Devers
On Wed, 22 Dec 2004, Mike Blezien wrote: > appologize for the off-topic, but we're looking for good Perl/MySQL > BBS system. Been to hotscripts.com they list a ton, but was hoping to > get some feedback/recommendation from the Perl list about a good > Perl/MySQL bulletin board. Don't want to us

Re: pattern matching question

2004-12-23 Thread Chris Devers
On Thu, 23 Dec 2004, John McCormick wrote: > i'm trying to figure out how to split a file delimited > by commas and newlines. > @data = split (/\n|\,/, ) > the only problem is that some of the data fields are > strings enclosed in double quotes, and within some of > those double quotes are more

Re: pattern matching question

2004-12-23 Thread Chris Charley
- Original Message - From: "John McCormick" i'm trying to figure out how to split a file delimited by commas and newlines. @data = split (/\n|\,/, ) the only problem is that some of the data fields are strings enclosed in double quotes, and within some of those double quotes are more com

RE: Accessing DLL functions

2004-12-23 Thread Sturdevant-Contractor, Robert W
Jonathan, Thanks for the response. The DB is unknown but designed to be accessed using the functions contained in the .dll library when the user wants to write/use a C pgm. Instead I'd like to access the DB using Perl. Since my last, I discovered the Roth Win32::API::Prototype which seems to sim

Re: pattern matching question

2004-12-23 Thread Jonathan Paton
> i'm trying to figure out how to split a file delimited > by commas and newlines. Sounds like a CSV file to me, and for those you look on CPAN for a ready made solution. http://search.cpan.org/search?query=CSV&mode=module Jonathan Paton -- #!perl $J=' 'x25 ;for (qq< 1+10 9+14 5-10 50-9 7+13 2

Re: Accessing DLL functions

2004-12-23 Thread Jonathan Paton
On Thu, 23 Dec 2004 13:24:47 -0500, Sturdevant-Contractor, Robert W <[EMAIL PROTECTED]> wrote: > > Hi, > > Am I correct in assuming that I can access functions in a .dll file using > the Win32::API module. I have a proprietary database database and C .dll > with function prototypes. I would l

pattern matching question

2004-12-23 Thread John McCormick
i'm trying to figure out how to split a file delimited by commas and newlines. @data = split (/\n|\,/, ) the only problem is that some of the data fields are strings enclosed in double quotes, and within some of those double quotes are more commas. that's too tricky for me. how do i do that? th

LWP::UserAgent establishing session CFM

2004-12-23 Thread Earthlink-m_ryan
I'm sending a request to an usoft IIS server running colfusion scripts and am having trouble getting my useragent to establish a session with the host. i recieve a timed out or session not established 500 server error from the host. does anyone know how to establish this kind of session? This is

Accessing DLL functions

2004-12-23 Thread Sturdevant-Contractor, Robert W
Hi,   Am I correct in assuming that I can access functions in a .dll file using the Win32::API module. I have a proprietary database database and C .dll with function prototypes. I would like to write a perl pgm using the ilibrary functions to access the DB. Am I headed in the right directio

Re: RE: LWP get only img

2004-12-23 Thread mgoland
- Original Message - From: Brian Volk <[EMAIL PROTECTED]> Date: Thursday, December 23, 2004 8:55 am Subject: RE: LWP get only img > Mark, > > Thank you so much for your help, that worked great! It turns out > that I > already had the latest version of HTML::Tokeparser::Simple instal

compilation error on z/OS

2004-12-23 Thread Rajarshi Das
Hi, I downloaded perl-5.8.5 and have built the same on a z/OS box with dynamic loading enabled (-Dmake=gmake -Dusedl -de). However, if I run the Embed.t test script, I get a error : archive library 'libperl.a' not found. The libperl.a wasnt built. However, a libperl.so was built by default. O

RE: LWP get only img

2004-12-23 Thread Brian Volk
Mark, Thank you so much for your help, that worked great! It turns out that I already had the latest version of HTML::Tokeparser::Simple installed. Thanks again! Brian > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 23, 2004 1:22 AM

Re: Converting a array to a scalar

2004-12-23 Thread John
- Original Message - From: "John W. Krahn" <[EMAIL PROTECTED]> To: "Perl Beginners" Sent: Thursday, December 23, 2004 4:06 PM Subject: Re: Converting a array to a scalar > John wrote: > > I found a quite easy way to do that. > > > > $content="@the_array"; > > > > Is the above method go

Re: Converting a array to a scalar

2004-12-23 Thread John W. Krahn
John wrote: I found a quite easy way to do that. $content="@the_array"; Is the above method good or am i missing something? That is the same as: $content = join $", @the_array; So if you want to have the array separated by the contents of the $" variable which defaults to ' '? John -- use Perl; p

Re: Uninitialized value in unpack

2004-12-23 Thread Jonathan Paton
On Thu, 23 Dec 2004 14:34:02 +0100, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Can anyone point out what is uninitialized in line 162? > > my @resolved = (); > foreach (@dns){ > my $ip = gethostbyname($_); If the gethostbyname() call fails (the name can not be resolved), then you get

Re: Uninitialized value in unpack

2004-12-23 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Can anyone point out what is uninitialized in line 162? You don't say which line is number 162. my @resolved = (); foreach (@dns){ my $ip = gethostbyname($_); gethostbyname() will return undef if $_ does not contain a valid host name. defined( my $ip = gethostby

Re: Uninitialized value in unpack

2004-12-23 Thread JupiterHost.Net
[EMAIL PROTECTED] wrote: Can anyone point out what is uninitialized in line 162? my @resolved = (); foreach (@dns){ my $ip = gethostbyname($_); my ($a,$b,$c,$d); my $x = join (".", (unpack('C4',$ip ))); # line 162 $x ||= ""; push (@resolved, join(" => ", $_,$x)); }

Re: Converting a array to a scalar

2004-12-23 Thread Jonathan Paton
On Thu, 23 Dec 2004 14:24:33 +0200, John <[EMAIL PROTECTED]> wrote: > Is there any good function to convert an array (this is the > content of a file) to scalar (for email sending as the body) Perhaps the module you are using can do this for you. If not, it *may* convert newline sequences to the

Re: Converting a array to a scalar

2004-12-23 Thread John
- Original Message - From: "Moon, John" <[EMAIL PROTECTED]> To: "'John'" <[EMAIL PROTECTED]>; "Perl Beginners" Sent: Thursday, December 23, 2004 3:37 PM Subject: RE: Converting a array to a scalar > Subject: Converting a array to a scalar > > Is there any good function to convert an a

Re: Converting a array to a scalar

2004-12-23 Thread John W. Krahn
John wrote: Is there any good function to convert an array (this is the content of a file) to scalar (for email sending as the body) my $scalar = join '', @array; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Converting a array to a scalar

2004-12-23 Thread Moon, John
Subject: Converting a array to a scalar Is there any good function to convert an array (this is the content of a file) to scalar (for email sending as the body) I am not sure I understand your questions but I have recently had success with the module Text-Template... You may wish to look at tha

Uninitialized value in unpack

2004-12-23 Thread perl
Can anyone point out what is uninitialized in line 162? my @resolved = (); foreach (@dns){ my $ip = gethostbyname($_); my ($a,$b,$c,$d); my $x = join (".", (unpack('C4',$ip ))); # line 162 $x ||= ""; push (@resolved, join(" => ", $_,$x)); } Thanks -- To unsubscr

Converting a array to a scalar

2004-12-23 Thread John
Is there any good function to convert an array (this is the content of a file) to scalar (for email sending as the body)

Re: Word Automation through Win32::OLE

2004-12-23 Thread Cutter
Jonathan and Jenda, I appreciate you taking the time to run through the basics. I'll make sure to use strict and warnings from now on. I sure hope it saves the time you are suggesting. Sometimes the debugging drives me nuts. The difference between properties and methods is difficult to determine