GD module not found using PPM

2005-01-20 Thread Mark Cohen
Hello, I couldn't find the GD module (graphs) when using PPM. After some search I found the following html which contains many module not found in PPM. Hope this helps somebody. www.bribs.org/perl/ppmdir.html Regards Mark

Re: More elegant solution for a date conversion

2005-01-20 Thread Mark Cohen
$str='0501201500'; $date=join('/',substr($str,2,2),substr($str,4,2),20 . substr($str,0,2)); $time=join(':',substr($str,6,2),substr($str,8,2)); $datetime=join(',',$date,$time); Regards Mark - Original Message - From: "Jason Balicki" <[EMAIL PROTECTED]> To: "'Perl Beginners List'" Sent:

Re: More elegant solution for a date conversion

2005-01-20 Thread John W. Krahn
Jason Balicki wrote: Hi, Hello, I've got a phone record that keeps the date and time in the following format: YYMMDDHHMM example: 0501201500 So, I've written the following to convert it to the format: MM/DD/,HH:MM example: 01/20/2005,15:00 sub convertdate { my($loc

Re: More elegant solution for a date conversion

2005-01-20 Thread Owen Cook
On Thu, 20 Jan 2005, Jason Balicki wrote: > > I've got a phone record that keeps the date and time > in the following format: > > YYMMDDHHMM > example: 0501201500 > > So, I've written the following to convert it to the > format: > > MM/DD/,HH:MM > example: 01/20/200

Re: More elegant solution for a date conversion

2005-01-20 Thread Randy W. Sims
Jason Balicki wrote: Hi, I've got a phone record that keeps the date and time in the following format: YYMMDDHHMM example: 0501201500 So, I've written the following to convert it to the format: MM/DD/,HH:MM example: 01/20/2005,15:00 You can use one of the Date modules that

More elegant solution for a date conversion

2005-01-20 Thread Jason Balicki
Hi, I've got a phone record that keeps the date and time in the following format: YYMMDDHHMM example: 0501201500 So, I've written the following to convert it to the format: MM/DD/,HH:MM example: 01/20/2005,15:00 sub convertdate { my($locdate)[EMAIL PROTECTED]

Fork

2005-01-20 Thread Tham, Philip
I was opening a html document using the function my $stream = HTML::TokeParser->new($filename) || die "Couldn't read HTML file $filename: $!"; while ($token=$stream->get_token()){ While processing the tokens I am forking a child processes. At some point in the process the variable $stream

Re: Using ftp/netrc on AIX

2005-01-20 Thread Randy W. Sims
Jeff Westman wrote: Hi All, I have an ftp script that connects and does the usual things (change dir., site change mode, transfer file, etc). I am using Net::FTP. Currently, I pass the server name, user id and password from the environment. Is $HOME/.netrc compatible with this module, does anyone

Re: regular expression matching vertical tab

2005-01-20 Thread Matt Matijevich
>ord() returns the _decimal_ number 13 (octal 015, hexadecimal x0D) which is >the CR (carriage return) character *NOT* the VT (vertical tab) character. Well, that would be my problem. Thank you -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: regular expression matching vertical tab

2005-01-20 Thread John W. Krahn
Matt Matijevich wrote: I am having troubles matching the Vertical Tab character using regular expressions. I have a string, I have looped through every character in the string and printed out the value returned from ord(), and I get 13 for one of my chars. I have searched and apparently that is the

Using ftp/netrc on AIX

2005-01-20 Thread Jeff Westman
Hi All, I have an ftp script that connects and does the usual things (change dir., site change mode, transfer file, etc). I am using Net::FTP. Currently, I pass the server name, user id and password from the environment. Is $HOME/.netrc compatible with this module, does anyone know?? When I tr

regular expression matching vertical tab

2005-01-20 Thread Matt Matijevich
I am having troubles matching the Vertical Tab character using regular expressions. I have a string, I have looped through every character in the string and printed out the value returned from ord(), and I get 13 for one of my chars. I have searched and apparently that is the vertical tab charact

Re: Does the SWITCH statement have a default?

2005-01-20 Thread Josimar Nunes de Oliveira
Hello everybody, see the documentation at: http://cpan.uwinnipeg.ca/htdocs/Switch/Switch.html and try the example below: use Switch; $op = 1; while ($op > 0){ chomp( $op = ); switch ($op) { case 1 { print "\n One" } case 3 { print "\n Three" } case 4 { print "\n F

Re: Does the SWITCH statement have a default?

2005-01-20 Thread Peter_Farrar
>Is there a correct way to define a default case within a SWITCH? I tried with >the bottom case, but that errors with: >Quantifier follows nothing before HERE mark in regex m/* << HERE / at ./ctest line 251. >SWITCH: >{ > $field =~ /^CR\d{0,7}$/ && do >{ > $openCRs++; >

RE: atom syndication

2005-01-20 Thread Charles K. Clarkson
Harsh Busa <[EMAIL PROTECTED]> wrote: : thanks for all the replies but for some reason it doesnt seem : to help me ... This seems to be correct behavior. You probably need to contact the module author <[EMAIL PROTECTED]> to see if this is a known bug. HTH, Charles K. Clarkson -- Mobile Ho

Re: how do you get the prompt out of cygWIN?

2005-01-20 Thread Alfred Vahau
run cmd.exe or command.com and after that run cygwin.bat from cmd.exe He was directed previously on this list to try this option. He has not reported whether this option actually works. But that is besides his problem which is to get the cygwin command prompt by clicking on the cygwin icon on the d

Does the SWITCH statement have a default?

2005-01-20 Thread Paul Ohashi
Hi, Is there a correct way to define a default case within a SWITCH? I tried with the bottom case, but that errors with: Quantifier follows nothing before HERE mark in regex m/* << HERE / at ./ctest line 251. SWITCH: { $field =~ /^CR\d{0,7}$/ && do { $openCRs++; pr

RE: cpan slow ?

2005-01-20 Thread Manav Mathur
Im facing the same issue. again from India. yesterday didnt go on the site but today, there's a definite problem Manav |-Original Message- |From: Harsh Busa [mailto:[EMAIL PROTECTED] |Sent: Thursday, January 20, 2005 11:18 PM |To: beginners@perl.org |Subject: cpan slow ? | | |hi | |i m t

cpan slow ?

2005-01-20 Thread Harsh Busa
hi i m trying to connect to search.cpan.org (from india ) and getting 502 Bad Gateway since almost 2 days ... anyone else facing the same issue ? Harsh -- __ http://www.ebackend.com/blog -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

RE: :PostalCode

2005-01-20 Thread brian . barto
If you figure it out, let me know. I had problems getting it to read the database. I eventually quit. -Original Message- From: Jay [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 12:17 PM To: Perl Beginners List Subject: Geo::PostalCode I have the following code, which dies "n

Geo::PostalCode

2005-01-20 Thread Jay
I have the following code, which dies "no such file or directory" at line 8. The problem seems to be that the census data file it relies on is a single .dbf, and the documentation seems to indicate that the module looks for three separate .db files. The .dbf file, though, is the file from the wor

Re: file handle warning

2005-01-20 Thread Mariano Cunietti
got it! perl complains about a file handler opened but never used. If I add: close MAILBOX; at the end of the script, the warning disappears. Sorry, wrote too faster than my brain :-) m. On Thu, 2005-01-20 at 16:29, Mariano Cunietti wrote: > I'm trying to run this script: > > #

file handle warning

2005-01-20 Thread Mariano Cunietti
I'm trying to run this script: #= #!/usr/bin/perl use strict; use warnings; my $user=$ARGV[0]; open (MAILBOX, "/var/spool/mail/".$user) or die ("Unable to open mailbox for user ".$user."!\n"); print "OK\n"; # passing a username as argument.

Module to work like a google engine index

2005-01-20 Thread José Pedro Silva Pinto
Hi, Hi, I would like to know if any one knows a perl module, which working like a index engine, on text documents or PDF documents or Word documents (like google to desktop, ou lucene API). Thanks José Pinto -Original Message- From: Chris Devers [mailto:[EMAIL PROTECTED] Sent: qui

Re: Can't locate loadable object for module

2005-01-20 Thread mgoland
- Original Message - From: "Henry, Mark Patrick" <[EMAIL PROTECTED]> Date: Thursday, January 20, 2005 0:54 am Subject: Can't locate loadable object for module > Hi, Hello; > > I'm trying to use a perl module that a tool I got, ccmeter.pl, > requiresand I can't no matter what I do.. >

Re: quiet CPAN instead of verbose?

2005-01-20 Thread JupiterHost.Net
Mark Goland wrote: http://search.cpan.org/~andk/CPAN-1.76/lib/CPAN.pm#Programmer's_interface Is there any way to make $mod->install and $mod->uptodate not have any output as per below? #!/usr/bin/perl use strict; use warnings; use CPAN; close STDOUT; # that should do it Thanks for the idea mark

Can't locate loadable object for module

2005-01-20 Thread Henry, Mark Patrick
Hi, I'm trying to use a perl module that a tool I got, ccmeter.pl, requires and I can't no matter what I do.. I'm on hpux11.11, and the script was written for 5.005_03 so that's what I'm including at the top of the perl script ( #!/apps/perl-5.005_03/bin/perl) - this exists and *is* that particul

Re: how do you get the prompt out of cygWIN?

2005-01-20 Thread Ing. Branislav Gerzo
Zapa Perl [ZP], on Wednesday, January 19, 2005 at 23:24 (-0800 (PST)) made these points: ZP> when I click on cygwin.bat run cmd.exe or command.com and after that run cygwin.bat from cmd.exe -- ...m8s, cu l8r, Brano. [I love watching Full House! @!#$&&#$ NO CARRIER] -- To unsubscribe, e-

Re: how do you get the prompt out of cygWIN?

2005-01-20 Thread Chris Devers
On Wed, 19 Jan 2005, Zapa Perl wrote: > when I click on cygwin.bat > a window pops up but disappears fast > not letting to do anything. > what am I doing wrong? I'm not sure. Did you look around on Cygwin.com for installation instructions? Have you tried reinstalling Cygwin? Just re-run setup.

Re: how do you get the prompt out of cygWIN?

2005-01-20 Thread Zapa Perl
when I click on cygwin.bat a window pops up but disappears fast not letting to do anything. what am I doing wrong? Zapa. Chris Devers <[EMAIL PROTECTED]> wrote: On Wed, 19 Jan 2005, Zapa Perl wrote: > I installed cygWIN on win-2000 but I can't figure out > How to launch cygWIN command prompt wi

Re: quiet CPAN instead of verbose?

2005-01-20 Thread Mark Goland
- Original Message - From: "JupiterHost.Net" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 19, 2005 8:47 PM Subject: quiet CPAN instead of verbose? > http://search.cpan.org/~andk/CPAN-1.76/lib/CPAN.pm#Programmer's_interface > > Is there any way to make $mod->install and $mod->uptod