perl.beginners
  Home FAQ Contact Sign in
perl.beginners only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
perl.beginners Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  RE: Doubt in Perl CGI         


Author: T Baetzler
Date: Jul 16, 2008 23:58

Prabu Ayyappan yahoo.com> asked:
> My Perl CGI script is working fine when i run the code in the
> command prompt as "perl myscript.cgi" . However when i run
> the same code in the browser(Internet Explorer), It is not
> working properly.

Have you tried running the script as the user id the web
server is running under?
> I am using "YAML::Syck" module in my CGI Script to parse the
> YAML file. So i use this module to read the YAML file and
> store it in a hash
>
> $data = LoadFile($fpath)
>
> I will place some logic here and list the values in a select box.
>
> The code is working fine till this select box after that it
> is not displaying anything in the browser(view source
> displays till the select). However the same code is running
> in the command prompt with the complete HTML generated.
Show full article (1.10Kb)
no comments
  Doubt in Perl CGI         


Author: Prabu Ayyappan
Date: Jul 16, 2008 23:42

Hi All,

My Perl CGI script is working fine when i run the code in the command prompt as "perl myscript.cgi" . However when i run the same code in the browser(Internet Explorer), It is not working properly.

I am using "YAML::Syck" module in my CGI Script to parse the YAML file. So i use this module to read the YAML file and store it in a hash

$data = LoadFile($fpath)

I will place some logic here and list the values in a select box.

The code is working fine till this select box after that it is not displaying anything in the browser(view source displays till the select). However the same code is running in the command prompt with the complete HTML generated.

Is that we need to add this module somewhere in the APACHE configuration?
Or do we need to add somewhere in the code.

I hope since this is working with the command prompt. Probably the error is with the APACHE or some include.

Please help.

Thanks,
Prabu

Explore your hobbies and interests. Go to http://in.promos.yahoo.com/groups/
no comments
  how to accept https certificate?         


Author: Lee Genstore
Date: Jul 16, 2008 22:04

Hi,

When i access a https page via browser, it would ask me whether to
accept the certificate.
But how can i do with perl? While i need to access my client's https
page but received error:
500 Can't connect to xxxx.com.my:443 (connect: Connection refused)
i use LWP, installed crypt::SSLeay. Is it the correct way?
Thanks for every reply!

lee
no comments
  Can not mix output of STDERR and STDOUT         


Author: FixReader
Date: Jul 16, 2008 18:01

Hi experts
When I am using STDERR and STDOUT for mixed output, I found a problem.
Output of STDERR and STDOUT can not be mixed.
Here is the snippet.

#####################################
print STDOUT "This is STDOUT\n";
print STDERR "This is STDERR\n";
print STDOUT "This is STDOUT\n";
#####################################

I thought the result shoud be
--------------------------------------
This is STDOUT
This is STDERR
This is STDOUT
--------------------------------------
Show full article (0.96Kb)
18 Comments
  Re: Embedding Perl in C: Replacing some subroutine in Perl from C         


Author: Ivan Gromov
Date: Jul 16, 2008 15:00

Thank you very much for help.

--
Kind regards,
Ivan Gromov.
no comments
  A newbie question - line number inside the script         


Author: Amit Koren
Date: Jul 16, 2008 03:22

Hi list.

I'm a newbie to Perl, (and to this mailing list) :)
There's a task i was given, in which it is necessary to get the
number of the current executing line/command - inside the script itself.

Can someone assist please ?

Thanks in advance,

Amit.
7 Comments