Re: Installing Gd

2004-12-21 Thread Octavian Rasnita
Hi, It seems that there is no GD in the default ActiveState repository. I have tried: C:\Documents and Settings\teddyppm install GD Error: PPD for 'GD.ppd' could not be found. C:\Documents and Settings\teddy Please tell me (if you know) the address of a repository that has GD, in order to add

Re: Calculating week numbers across years

2004-12-21 Thread Jonathan Paton
if ( $freq eq 'w' ) { return 1 if ( ($tweek - $dweek) = 1 ); } elsif ( $freq eq 'eow' ) { return 1 if ( ($tweek - $dweek) = 2 ); } elsif ( $freq eq 'm' ) { return 1 if ( ($tweek - $dweek) = 5 ); } elsif ( $freq

Cgi Modul

2004-12-21 Thread E.Horn
How can i call a function in cgi! i want to make a htmlsite which works with my main programm an gives the result out! if i use the functon name it does not work! wo can i involve a function into this cgi script? use CGI; my $cgi = new CGI; use CGI::Carp qw(fatalsToBrowser); my

RE: Cgi Modul

2004-12-21 Thread Moon, John
How can i call a function in cgi! i want to make a htmlsite which works with my main programm an gives the result out! if i use the functon name it does not work! wo can i involve a function into this cgi script? use CGI; my $cgi = new CGI; use CGI::Carp qw(fatalsToBrowser); my

Re: Re Pretty e-mails

2004-12-21 Thread JupiterHost.Net
Hawkes, Mick I wrote: Thanks for your input Lee, Just a couple of things The boss is pretty cool really, he put me onto Perl and HTML Templates in the first place Ok he *does* sound ok then ;p but we are both feeling our way with sending email with it. I work for Telstra, so we have no influence

Re: Pretty Emails

2004-12-21 Thread Chris Devers
On Mon, 20 Dec 2004, JupiterHost.Net wrote: Hawkes, Mick I wrote: I am currently using the MIME::Lite module to send Emails, However my boss wants me to line the tables up better and generally pretty it up A bit (bold) etc. I can't use HTML as our company is still using NT4

RE: Cgi Modul

2004-12-21 Thread Moon, John
output 56711265 56706919 Content-Type: text/html !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN HTMLHEADTITLEDaten/TITLE /HEADBODYH2Query/H2H3ras/H3HR SIZE=1 NOSHADEH2 STYLE=color:blueAutor: Ihallo/I/H2/BODY/HTML The problem is i always write NOTin the

NCR to Shift JIS

2004-12-21 Thread Mallik
Hi all, I have a requirement whrein i need to convert the NCR values representing Japanese characters back into the Shift_JIS equivalent characters. Is there a Perl code/module available for the same. Thanks in advance, Mallik. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Getopt::Long , handles the number zero differently..

2004-12-21 Thread Mike Donnelly
Using the example code below, I find that I can use getopt handily to pass all sorts of variables to my script, as long as a value passed is not a 0 (zero) How to I use getopt::long and be able to pass the number zero as a value? Code, and behavior follows

Re: Getopt::Long , handles the number zero differently..

2004-12-21 Thread mgoland
- Original Message - From: Mike Donnelly [EMAIL PROTECTED] Date: Tuesday, December 21, 2004 10:58 am Subject: Getopt::Long , handles the number zero differently.. Hello Using the example code below, I find that I can Please paste working code use getopt handily to pass all

Re: Getopt::Long , handles the number zero differently..

2004-12-21 Thread Mike Donnelly
--- [EMAIL PROTECTED] wrote: - Original Message - From: Mike Donnelly [EMAIL PROTECTED] Date: Tuesday, December 21, 2004 10:58 am Subject: Getopt::Long , handles the number zero differently.. Hello Using the example code below, I find that I can Please paste

Re: Pretty Emails

2004-12-21 Thread JupiterHost.Net
Your boss wants you to format text without using the world's most compatible and widely used formatting language?? ...which should never, ever have been added to email. Good point :) This is offtopic, but let's be honest, HTML is a lousy formatting language, and adding it to email caused all

RE: Missing output on browser

2004-12-21 Thread Graeme St. Clair
You may be getting a different set of environment variables in cgi than from the command line. I had to put a BEGIN block in all of my cgi scripts - to set environment - for the scripts to work in cgi... Jwm Interesting! I guess that explains the BEGIN block I recently inherited. Context

Running a perl script thru a perl script

2004-12-21 Thread Dave Kettmann
Hello, I have built a script that has 2 environment variables passed to it and it will take that data and return a value. This script works fine, but there are many possibilites that can be passed to it. I want to build a test case of sorts to pass to this script. In 'meta-code' this is what I

RE: Running a perl script thru a perl script

2004-12-21 Thread Moon, John
Subject: Running a perl script thru a perl script Hello, I have built a script that has 2 environment variables passed to it and it will take that data and return a value. This script works fine, but there are many possibilites that can be passed to it. I want to build a test case of sorts to

RE: Running a perl script thru a perl script

2004-12-21 Thread Bob Showalter
Dave Kettmann wrote: Hello, I have built a script that has 2 environment variables passed to it and it will take that data and return a value. This script works fine, but there are many possibilites that can be passed to it. I want to build a test case of sorts to pass to this script. In

A very simple example program Comparing Perl, Python and Java

2004-12-21 Thread Richard Monson-Haefel
Hi, I'm writing a paper comparing the use of Perl, Python and Java. My Perl is pretty bad (as is my Python), so I thought I would check to see if there is a more efficient way of doing it. Here is the Perl program http://www.rafb.net/paste/results/4px8PI74.html If there is a more

Getopt::Long , handles the number zero differently..

2004-12-21 Thread Mike Donnelly
Using the example code below, I find that I can use getopt handily to pass all sorts of variables to my script, as long as a value passed is not a 0 (zero) How to I use getopt::long and be able to pass the number zero as a value? Code, and behavior follows

RE: A very simple example program Comparing Perl, Python and Java

2004-12-21 Thread Bob Showalter
Richard Monson-Haefel wrote: Here is the Perl program http://www.rafb.net/paste/results/4px8PI74.html Here it is: #!/usr/bin/perl -w @l = @ARGV; print @l\n; @r = (); foreach $x(@l){ if(length($x) = 3){ push(@r, $x); } } $y = @r; print $y; foreach

Re: Getopt::Long , handles the number zero differently..

2004-12-21 Thread John W. Krahn
Mike Donnelly wrote: Using the example code below, I find that I can use getopt handily to pass all sorts of variables to my script, as long as a value passed is not a 0 (zero) How to I use getopt::long and be able to pass the number zero as a value? Code, and behavior follows

Re: A very simple example program Comparing Perl, Python and Java

2004-12-21 Thread JupiterHost.Net
Richard Monson-Haefel wrote: Hi, Hello, I'm writing a paper comparing the use of Perl, Python and Java. My Perl is pretty bad (as is my Python), so I thought I would check to see if there is a more efficient way of doing it. Here is the Perl program

Re: A very simple example program Comparing Perl, Python and Java

2004-12-21 Thread JupiterHost.Net
This is an equivalent program: #!/usr/bin/perl print @ARGV\n; print $_\n for grep length($_) = 3, @ARGV; Ha Ha even better, nice one Bob! Perl is just way to awesome :) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Running a perl script thru a perl script

2004-12-21 Thread John W. Krahn
Dave Kettmann wrote: Hello, Hello, I have built a script that has 2 environment variables passed to it and it will take that data and return a value. This script works fine, but there are many possibilites that can be passed to it. I want to build a test case of sorts to pass to this script. You

Re: A very simple example program Comparing Perl, Python and Java

2004-12-21 Thread John W. Krahn
Richard Monson-Haefel wrote: Hi, Hello, I'm writing a paper comparing the use of Perl, Python and Java. My Perl is pretty bad (as is my Python), so I thought I would check to see if there is a more efficient way of doing it. Here is the Perl program #!/usr/bin/perl -w @l = @ARGV; print @l\n; @r

RE: Pretty Emails

2004-12-21 Thread Hawkes, Mick I
Thanks Chris, Went to the exegesis7 link and that format will do though I do have some questions about it (I am a newbie to Perl after all :-)) from the site So, whereas in Perl 5 we might write: # Perl 5 code... our ($name, $age, $ID, $comments); format STDOUT

Re: Pretty Emails

2004-12-21 Thread John W. Krahn
Hawkes, Mick I wrote: Went to the exegesis7 link and that format will do though I do have some questions about it (I am a newbie to Perl after all :-)) from the site So, whereas in Perl 5 we might write: # Perl 5 code... our ($name, $age, $ID, $comments); format STDOUT