RE: polylines

2007-06-15 Thread Geetha
Dear Mr. Phoenix, Thanks for the reply. What I want is to when I give the x and y coordinates two polylines should be drawn and next the distance between these two polylines at given points should be calculated. I want to do this in perl. I understand that this can be done using GD::polyline modu

Re: Iterate through a hashref using XML::Simple (real post)

2007-06-15 Thread [EMAIL PROTECTED]
In the documentation it says that you can read files chunks at a time but I haven't tried it. > Ken Foskey > FOSS developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Iterate through a hashref using XML::Simple (real post)

2007-06-15 Thread Chas Owens
On 6/15/07, Ken Foskey <[EMAIL PROTECTED]> wrote: On Fri, 2007-06-15 at 14:08 -0700, [EMAIL PROTECTED] wrote: > Sweet Chas! > > My two cents is to check out XML::Twig at http://www.xmltwig.org/ . > > It's easy to get a grip on and well suited to reading attributes as > well as elements in element

Re: Comparing the Perl encrypted files

2007-06-15 Thread Tom Phoenix
On 6/15/07, sivasakthi <[EMAIL PROTECTED]> wrote: Yes..i need to compare the contents of two binary files.. Have you checked on CPAN? I found this: http://search.cpan.org/~cwest/ppt-0.14/bin/cmp Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL

Re: Comparing the Perl encrypted files

2007-06-15 Thread sivasakthi
> text mode: Line endings are translated to/from Perl's end-of-line > character "\n" to the host operating system's end-of-line character > (CRLF for DOS based machines, LF for UNIX based machines, etc.) > > binary mode (aka raw): No translations are made. Characters/bytes are > written directly

Re: polylines

2007-06-15 Thread Tom Phoenix
On 6/15/07, Geetha <[EMAIL PROTECTED]> wrote: I want to draw polylines and do some distance calculations. I searched any tutorial relating to drawing polylines but couldn't find. Can you please give me some references to learn about polylines in perl? My sources tell me that a polyline is a

Re: Iterate through a hashref using XML::Simple (real post)

2007-06-15 Thread Ken Foskey
On Fri, 2007-06-15 at 14:08 -0700, [EMAIL PROTECTED] wrote: > Sweet Chas! > > My two cents is to check out XML::Twig at http://www.xmltwig.org/ . > > It's easy to get a grip on and well suited to reading attributes as > well as elements in elements. Looks interesting, would this reasonably hand

RE: FTP to IBM ZOS/390

2007-06-15 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: Chas Owens [mailto:[EMAIL PROTECTED] > Sent: Friday, June 15, 2007 16:50 > To: Wagner, David --- Senior Programmer Analyst --- WGO > Cc: beginners@perl.org > Subject: Re: FTP to IBM ZOS/390 > > On 6/15/07, Wagner, David --- Senior Programmer Analyst --- WGO >

Re: FTP to IBM ZOS/390

2007-06-15 Thread Chas Owens
On 6/15/07, Wagner, David --- Senior Programmer Analyst --- WGO <[EMAIL PROTECTED]> wrote: Has anyone done any FTP'ing to IBM ZOS/390 machine. As you can see in the output there was a timeout due to waiting for a file to recalled from tape to disk. snip My only suggestion is to increas

Re: Having trouble porting an application to MS-Windows

2007-06-15 Thread Chas Owens
On 6/15/07, Bob McConnell <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Chas Owens [mailto:[EMAIL PROTECTED] > Sent: Friday, June 15, 2007 11:33 AM > To: Bob McConnell > Cc: beginners@perl.org > Subject: Re: Having trouble porting an application to MS-Windows > > On 6/15/07, Bob

FTP to IBM ZOS/390

2007-06-15 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Has anyone done any FTP'ing to IBM ZOS/390 machine. As you can see in the output there was a timeout due to waiting for a file to recalled from tape to disk. Output: Net::FTP=GLOB(0x15f35c)>>> STOR FREQ0407 Net::FTP=GLOB(0x15f35c)<<< 125-Waiting for recall of data set FTPTRGP.FREQ0407 Net

Re: Iterate through a hashref using XML::Simple (real post)

2007-06-15 Thread [EMAIL PROTECTED]
Sweet Chas! My two cents is to check out XML::Twig at http://www.xmltwig.org/ . It's easy to get a grip on and well suited to reading attributes as well as elements in elements. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.or

RE: Having trouble porting an application to MS-Windows

2007-06-15 Thread Bob McConnell
> -Original Message- > From: Chas Owens [mailto:[EMAIL PROTECTED] > Sent: Friday, June 15, 2007 11:33 AM > To: Bob McConnell > Cc: beginners@perl.org > Subject: Re: Having trouble porting an application to MS-Windows > > On 6/15/07, Bob McConnell <[EMAIL PROTECTED]> wrote: > snip > > Or h

Re: Why am I getting the error (Maybe you meant system() when you said exec()?) ??

2007-06-15 Thread Paul Lalli
On Jun 15, 11:17 am, [EMAIL PROTECTED] wrote: > Howdy, > > Please be gentle, I'm a perl novice to say the least. > > I have the following script (called bk.pl right now) : > foreach $argnum (0 .. $#ARGV) { > my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime > time; >

Re: Comparing the Perl encrypted files

2007-06-15 Thread yitzle
I think he wants to compare two Perl scripts that have been rendered to binary in the form that the ByteLoader would use. On 6/15/07, Chas Owens <[EMAIL PROTECTED]> wrote: On 6/15/07, sivasakthi <[EMAIL PROTECTED]> wrote: > I have mentioned the binary Perl files by encrypted Perl files.. is it >

Re: Why am I getting the error (Maybe you meant system() when you said exec()?) ??

2007-06-15 Thread Chas Owens
On 6/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Howdy, Please be gentle, I'm a perl novice to say the least. snip When I run it (./scripts/bk.pl dbname) it runs the first exec properly, but it dose not do the second. I get the error (Maybe you meant system() when you said exec()?) A

Re: Why am I getting the error (Maybe you meant system() when you said exec()?) ??

2007-06-15 Thread Martin Barth
Hi, you ment system() wen you said exec()! perldoc -f system perldoc -f exec for short: exec() replaces the perl process. system() invokes your myslqdump process and waits till it is finished. HTH Martin On Fri, 15 Jun 2007 15:17:03 - [EMAIL PROTECTED] wrote: > Howdy, > > Please be gent

Re: Having trouble porting an application to MS-Windows

2007-06-15 Thread Chas Owens
On 6/15/07, Bob McConnell <[EMAIL PROTECTED]> wrote: snip Or have I found a bug in the ActiveState implementation? snip Are you currently paying for ActiveState support? If so, I would suggest filing a ticket with them. In the mean time, try modifying my code to do a sysread from a socket. -

Why am I getting the error (Maybe you meant system() when you said exec()?) ??

2007-06-15 Thread jreljac
Howdy, Please be gentle, I'm a perl novice to say the least. I have the following script (called bk.pl right now) : foreach $argnum (0 .. $#ARGV) { my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime time; exec ("mysqldump --user=*** --password=*** $ARGV[$argnum]

RE: Having trouble porting an application to MS-Windows

2007-06-15 Thread Bob McConnell
> -Original Message- > From: Chas Owens [mailto:[EMAIL PROTECTED] > Sent: Friday, June 15, 2007 10:55 AM > To: Bob McConnell > Cc: beginners@perl.org > Subject: Re: Having trouble porting an application to MS-Windows > > On 6/15/07, Bob McConnell <[EMAIL PROTECTED]> wrote: > snip > >

Re: dynamic loading option?

2007-06-15 Thread Chas Owens
On 6/14/07, Ravi Malghan <[EMAIL PROTECTED]> wrote: snip Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib' snip Offhand I would say you have dynamic linking. Is the module failing to install? If so, with

Re: Having trouble porting an application to MS-Windows

2007-06-15 Thread Chas Owens
On 6/15/07, Bob McConnell <[EMAIL PROTECTED]> wrote: snip eval { local $SIG{ALRM} = sub { die "alarm\n" }; # NB: \n required alarm $timeout; $nread = sysread PORT, $line, 1; alarm 0;

Re: using a homemade perl module

2007-06-15 Thread Brad Baxter
On Jun 14, 10:22 pm, [EMAIL PROTECTED] (Mathew Snyder) wrote: > I fixed all of the bugs save one. I can't access any of my subroutines > without > explicitly using it with dates_emails::subroutine. I was under the impression > that if I was exporting them all from the module, the subroutine woul

RE: Having trouble porting an application to MS-Windows

2007-06-15 Thread Bob McConnell
> -Original Message- > From: Chas Owens [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 14, 2007 12:10 PM > To: Bob McConnell > Cc: beginners@perl.org > Subject: Re: Having trouble porting an application to MS-Windows > > On 6/14/07, Chas Owens <[EMAIL PROTECTED]> wrote: > > On 6/14/07,

Re: Comparing the Perl encrypted files

2007-06-15 Thread Chas Owens
On 6/15/07, sivasakthi <[EMAIL PROTECTED]> wrote: I have mentioned the binary Perl files by encrypted Perl files.. is it not right one? text mode: Line endings are translated to/from Perl's end-of-line character "\n" to the host operating system's end-of-line character (CRLF for DOS based machi

Re: Comparing the Perl encrypted files

2007-06-15 Thread sivasakthi
I have mentioned the binary Perl files by encrypted Perl files.. is it not right one? On Fri, 2007-06-15 at 13:56 +0200, Jenda Krynicky wrote: > From: sivasakthi <[EMAIL PROTECTED]> > > Hi Guys, > > > > is it possible to comparing the encrypted Perl files?? > > > > Thanks, > > Siva > > I'm af

Re: Comparing the Perl encrypted files

2007-06-15 Thread Jenda Krynicky
From: sivasakthi <[EMAIL PROTECTED]> > Hi Guys, > > is it possible to comparing the encrypted Perl files?? > > Thanks, > Siva I'm afraid you'll have to explain what do you mean by "encrypted Perl files". Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, w

Re: Comparing the Perl encrypted files

2007-06-15 Thread Jeff Pang
sivasakthi 写道: > Hi Guys, > > is it possible to comparing the encrypted Perl files?? > > The way I can think is to compare their md5sum value. If the md5sum values are the same,then the two files should be the same. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Comparing the Perl encrypted files

2007-06-15 Thread sivasakthi
Hi Guys, is it possible to comparing the encrypted Perl files?? Thanks, Siva

RE: is require a keyword ?

2007-06-15 Thread Garg, Mayank IN BOM SISL
Thanks Jeff, It helped -Original Message- From: Jeff Pang [mailto:[EMAIL PROTECTED] Sent: Friday, June 15, 2007 10:46 AM To: Subject: Re: is require a keyword ? Garg, Mayank IN BOM SISL 写道: > > > Hi Guys, > > I was going thru a script which had the the lines: > > > >

Re: 'Keys' Question

2007-06-15 Thread Jenda Krynicky
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > On Jun 14, 7:59 am, [EMAIL PROTECTED] (Jenda Krynicky) wrote: > > Most likely the second line should look like this: > > > > @TablePreReq = keys(%{$ConfigFile{InputDataFile}}); > > This gets it to compile. I was a bit puzzled because this code is

Re: using a homemade perl module

2007-06-15 Thread Martin Barth
oh! you're right! i'm sorry. On Fri, 15 Jun 2007 16:51:48 +0800 Jeff Pang <[EMAIL PROTECTED]> wrote: > Martin Barth 写道: > > Well the code looks ok. > > > > I just wrote some simple test code to do the same thing like you, but > > it worked as exepcted. Are there some differeces between that exa

Re: using a homemade perl module

2007-06-15 Thread Jeff Pang
Martin Barth 写道: Well the code looks ok. I just wrote some simple test code to do the same thing like you, but it worked as exepcted. Are there some differeces between that example and your code? HTH % ls Module.pm test.pl % cat Module.pm #!/usr/bin/perl -w use strict; require Exporter; our

Re: is require a keyword ?

2007-06-15 Thread Jeff Pang
Garg, Mayank IN BOM SISL 写道: Hi Guys, I was going thru a script which had the the lines: require Exporter; require DynaLoader; what does these lines mean You may take a look at: perldoc -f require -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: using a homemade perl module

2007-06-15 Thread Martin Barth
Well the code looks ok. I just wrote some simple test code to do the same thing like you, but it worked as exepcted. Are there some differeces between that example and your code? HTH % ls Module.pm test.pl % cat Module.pm #!/usr/bin/perl -w use strict; require Exporter; our @ISA = qw/Exporter/

is require a keyword ?

2007-06-15 Thread Garg, Mayank IN BOM SISL
Hi Guys, I was going thru a script which had the the lines: require Exporter; require DynaLoader; what does these lines mean Regards, Mayank

polylines

2007-06-15 Thread Geetha
Dear all, I want to draw polylines and do some distance calculations. I searched any tutorial relating to drawing polylines but couldn't find. Can you please give me some references to learn about polylines in perl? Thanks in advance. Geetha