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
Hi
Is there any module in perl where I can Map the IP country with the country..
Thanks
Anish
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
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
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
- 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
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
> 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
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
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
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
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
- 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
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
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
- 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
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
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
[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
[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));
}
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
- 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
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]
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
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
Is there any good function to convert an array (this is the content of a file)
to scalar (for email sending as the body)
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
27 matches
Mail list logo