joker wrote:
I don't know Perl to build a CGI script but I know C++. I need to
know how the server use a "file.exe" and the html page from the client
browser. In C++ the data I need to consider is stored in arrays or
variables. The html page inside the server how is stored? How a
CGI .exe can fi
Chris Cosner wrote:
If you put a hash reference into an array
push @array, \%hash;
you do not store any actual hash data in the array.
So if you change the hash, then later pull the hash reference from the
array and access it, you get changed data.
push @array, { %hash };
This creates an
Mr. Shawn H. Corey wrote:
> Ibrahim Dawud wrote:
>
>>Hello,
>>
>>The following code works great using normal perl but does not work
>>under mod_perl:
>>
Oops, I overlooked the fact that you are using mod_perl. I haven't use
it for years but I seem t
Ibrahim Dawud wrote:
> Hello,
>
> The following code works great using normal perl but does not work
> under mod_perl:
>
> #!/usr/bin/perl
>
> use CGI;
> my $cgi = new CGI;
> print $cgi->header();
> print $cgi->start_html();
> $| = 1;
> print $cgi->h2("test1");
> sleep 1;
> $| = 1;
> print $cgi-
On Sun, 2006-25-06 at 00:14 +0500, Sara wrote:
> Need help to remove EVERY thing (non-alphabets, symbols, ASCII codes etc)
> from a string except for a-zAZ, 0-9, dash and underscore.
>
> $string =~ s/??
>
> Thanks,
> Sara.
>
By dash, I assume you mean ASCII character 0x2D.
English version
On Tue, 2006-20-06 at 13:58 +0200, sfantar wrote:
> "CGIs are forked off of the web server, which normally runs under a
> "different user."
>
> I understand the fact that's the CGIs are run by a different user.
> Is this user the same as the one who launched Apache?
>
Maybe, it depends on the co
On Wed, 2006-14-06 at 16:40 -0700, Hardly Armchair wrote:
> Hello All,
>
> I was wondering if it is more efficient (in terms of speed and processor
> load) to have two different scripts of approximately the same size
> called to handle two different functions, or to have one large script
> hand
On Fri, 2006-28-04 at 14:45 -0400, Mr. Shawn H. Corey wrote:
> Both Storable and Data::Dumper are part of the standard Perl install.
> You should already have them on your machine. To check if a module is
> already loaded:
>
> perl -M -e ""
>
> Replace with
On Fri, 2006-28-04 at 14:27 -0400, Jay Savage wrote:
> It's actually Data::Dumper, and yes, it's a cpan module. It turns Perl
> data structures into a format that can be evaled to recreate the
> original structure. Storable is another cpan module--no, it's not part
> of Data::Dumper--that is design