CGI

2009-06-09 Thread Irfan Sayed
Hi ALL, i have written sample cgi script in perl. here it is #!/usr/bin/perl print Content-type: text/html\n\n; print HI; HTML HEAD   TITLEWelcome to CGI scripting /TITLE     /HEAD   /HTML     HI but when i am trying to execute this script it throws me an error like Can't find

Re: CGI

2009-06-09 Thread Owen
Hi ALL, i have written sample cgi script in perl. here it is #!/usr/bin/perl print Content-type: text/html\n\n; print HI; HTML HEAD   TITLEWelcome to CGI scripting /TITLE     /HEAD   /HTML     HI but when i am trying to execute this script it throws me an error like Can't

Re: CGI

2009-06-09 Thread Dave Tang
On Tue, 09 Jun 2009 16:16:41 +1000, Irfan Sayed irfan_sayed2...@yahoo.com wrote: Hi ALL, i have written sample cgi script in perl. here it is #!/usr/bin/perl print Content-type: text/html\n\n; print HI; HTML HEAD   TITLEWelcome to CGI scripting /TITLE     /HEAD   /HTML     HI Try

Re: CGI

2009-06-09 Thread Irfan Sayed
Thanks . it worked. regards irf From: Owen rc...@pcug.org.au To: Irfan Sayed irfan_sayed2...@yahoo.com Cc: beginners@perl.org Sent: Tuesday, June 9, 2009 12:03:49 PM Subject: Re: CGI Hi ALL, i have written sample cgi script in perl. here it is

Efficiently going through results

2009-06-09 Thread Dave Tang
Hello, I have a problem, which I have put into an analogy. Suppose a parent has 11 children. These children like chocolate. If 9 or more of the 11 children from the same parent like a particular chocolate, the parent will like the chocolate. I want to find out what types of chocolate each

Mac::Glue with Adobe Illustrator

2009-06-09 Thread Beau E. Cox
HI - Has anyone on this list used Mac::Glue, specifically to script Adobe Illustrator? I have been trying and trying to get it to work, alas, no joy. Simple things (start Illustrator, activate, quit, etc) work, but as soon as I start using parameters I run into a brick wall. This script to open

AW: Efficiently going through results

2009-06-09 Thread Thomas Bätzler
Dave Tang d.t...@imb.uq.edu.au asked: my %result = (); foreach my $parent (keys %listOfParent){ my $chocolate = ''; foreach my $child (keys %{$listOfParent}{$parent}){ foreach ($listOfParent{$parent}{$child}){ $chocolate = $_; Why not foreach my $chocolate

Re: Efficiently going through results

2009-06-09 Thread Jim Gibson
On 6/9/09 Tue Jun 9, 2009 1:24 AM, Dave Tang d.t...@imb.uq.edu.au scribbled: Hello, I have a problem, which I have put into an analogy. Suppose a parent has 11 children. These children like chocolate. If 9 or more of the 11 children from the same parent like a particular chocolate, the

TCP/IP client

2009-06-09 Thread Octavian Râşniţă
Hi, I need to create a TCP/IP client that connects to a server which accepts messages made from 3 parts: - a static start string of 9 bytes; - the body (that can have a variable length) - a static string of 9 bytes. ...and then it gives a response that I need to get. I've searched the CPAN

Re: TCP/IP client

2009-06-09 Thread Chas. Owens
2009/6/9 Octavian Râşniţă orasn...@gmail.com: Hi, I need to create a TCP/IP client that connects to a server which accepts messages made from 3 parts: - a static start string of 9 bytes; - the body (that can have a variable length) - a static string of 9 bytes. ...and then it gives a

Re: CGI scripting

2009-06-09 Thread Eko Budiharto
Irfan, please read the readme or the user guide. I think you should modify to specify the virtual directory name on the apache. Irfan Sayed wrote: *From:* Eko Budiharto eko.budiha...@gmail.com *To:* Irfan Sayed

localtime

2009-06-09 Thread Rick
below is working code but is there way to shorten this code in more perlish way? my($DAY, $MONTH , $YEAR ) = (localtime)[3,4,5]; my $day = sprintf(%02d,$DAY); my $month = sprintf(%02d, ($MONTH + '1')); my $year = sprintf(%04d, ($YEAR + '1900')); my $current_dir = join('', $year, $month,

Re: localtime

2009-06-09 Thread Tech W.
use POSIX's function strftime: perl -le 'use POSIX qw/strftime/;$time = strftime %Y%m%d,localtime; print $time' --- On Wed, 10/6/09, Rick rich.j...@gmail.com wrote: From: Rick rich.j...@gmail.com Subject: localtime To: Perl Beginners beginners@perl.org Received: Wednesday, 10 June, 2009,

Re: localtime

2009-06-09 Thread John W. Krahn
Rick wrote: below is working code but is there way to shorten this code in more perlish way? my($DAY, $MONTH , $YEAR ) = (localtime)[3,4,5]; my $day = sprintf(%02d,$DAY); my $month = sprintf(%02d, ($MONTH + '1')); my $year = sprintf(%04d, ($YEAR + '1900')); Why are you using a string for

Re: CGI

2009-06-09 Thread Greg Eldridge
Hello, On Mon, 2009-06-08 at 23:38 -0700, Irfan Sayed wrote: From: Owen rc...@pcug.org.au To: Irfan Sayed irfan_sayed2...@yahoo.com Cc: beginners@perl.org Sent: Tuesday, June 9, 2009 12:03:49 PM Subject: Re: CGI Hi ALL, i have written sample cgi

Re: CGI

2009-06-09 Thread Owen
Hello, On Mon, 2009-06-08 at 23:38 -0700, Irfan Sayed wrote: From: Owen rc...@pcug.org.au To: Irfan Sayed irfan_sayed2...@yahoo.com Cc: beginners@perl.org Sent: Tuesday, June 9, 2009 12:03:49 PM Subject: Re: CGI Hi ALL, i have written sample cgi

Re: TCP/IP client

2009-06-09 Thread Octavian Rasnita
From: Chas. Owens chas.ow...@gmail.com 2009/6/9 Octavian Râşniţă orasn...@gmail.com: Hi, I need to create a TCP/IP client that connects to a server which accepts messages made from 3 parts: - a static start string of 9 bytes; - the body (that can have a variable length) - a static string of 9