Re: converting the elements of a hash to uppercase

2004-11-13 Thread John W. Krahn
Octavian Rasnita wrote: Hi all, Hello, Please tell me how to convert the elements of a hash to uppercase, if I can access that hash only by reference. For example, I have something like: my $ref = { 'a' => 'aaa', 'b' => 'bbb', 'c' => 'ccc' }; And I want to make 'a' to be 'A', 'b' to be 'B' and so o

DBD::mysql error

2004-11-13 Thread Chandrakant Reddy
Hi I am getting this error when i execute my cgi script. Here i am only trying to connect to my mysql database. [cmd] perl peoplemysql.cgi install_driver(mysql) failed: Can't load '/usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/auto/DBD/mysql/mysql.so' for module DBD::mysql: ld.so.1: perl: f

Re: converting the elements of a hash to uppercase

2004-11-13 Thread Randy W. Sims
John W. Krahn wrote: Octavian Rasnita wrote: Hi all, Hello, Please tell me how to convert the elements of a hash to uppercase, if I can access that hash only by reference. For example, I have something like: my $ref = { 'a' => 'aaa', 'b' => 'bbb', 'c' => 'ccc' }; And I want to make 'a' to be 'A'

Re: regexp for ip address

2004-11-13 Thread Ing. Branislav Gerzo
PS> This isn't shorter, but it is easier to understand :-) PS> /^(\d+)(??{ $1 > 0 && $1 < 256 ? "" : "(?!)" }) \. PS>(\d+)(??{ $2 > 0 && $2 < 256 ? "" : "(?!)" }) \. PS>(\d+)(??{ $3 > 0 && $3 < 256 ? "" : "(?!)" }) \. PS>(\d+)(??{ $4 > 0 && $4 < 256 ? "

Need help with creating a web forwarding site.

2004-11-13 Thread Zeus Odin
I would like to create a site that does nothing but forward requests to a destination site, say mydest.com. This is for nothing illicit, I am simply trying to circumvent a firewall's list of banned sites. :-) For instance, if I were to go to http://www.mysite.com, it would send a request to GET ht

Re: Need help with creating a web forwarding site.

2004-11-13 Thread Philipp Traeder
On Saturday 13 November 2004 13:51, Zeus Odin wrote: > I would like to create a site that does nothing but forward requests to a > destination site, say mydest.com. This is for nothing illicit, I am simply > trying to circumvent a firewall's list of banned sites. > > :-) > > For instance, if I were

Re: regexp for ip address

2004-11-13 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ing. Branislav Gerzo) writes: >PS> This isn't shorter, but it is easier to understand :-) > >PS> /^(\d+)(??{ $1 > 0 && $1 < 256 ? "" : "(?!)" }) \. >PS>(\d+)(??{ $2 > 0 && $2 < 256 ? "" : "(?!)" }) \. >PS>(\d+)(??{

RE: Why doesn't this work?

2004-11-13 Thread Zeus Odin
> Good morning, Zeus. Good morning. > Your codes is so neat and clean. I appreciate your help. Why thank you. Everyone loves compliments. :-) > I have one question to you though. You are more than welcome to cc me via email. However, please post to perl.beginners in case I am away from my

Re: Using plain text Perl and ByteLoader in the same script

2004-11-13 Thread JupiterHost.Net
JupiterHost.Net wrote: perldoc B::ByteCode has an example: $ perl -MO=Bytecode,-H,-ohi -e 'print "hi!\n"' $ perl hi hi! hi is: #! perl use ByteLoader 0.05; [bytecode] In the interest of learning a bit I have a couple questions I couldn't seem to find: 1) Is there a way to have code before

Re: Printing output to file

2004-11-13 Thread Chasecreek Systemhouse
On Sat, 13 Nov 2004 14:48:06 +0800 (CST), Stephen Liu <[EMAIL PROTECTED]> wrote: > > > $ perl AAA.pl > /pathto/name_of_file > > > > > > is it possible adding "print file function" to the > > > script Maybe this example would be of benefit? http://backpan.cpan.org/authors/id/S/SN/SNEEX/accts.sx R

Re: DBD::mysql error

2004-11-13 Thread Chasecreek Systemhouse
On Sat, 13 Nov 2004 15:10:46 +0530, Chandrakant Reddy > Compilation failed in require at (eval 1) line 3. > Perhaps a required shared library or dll isn't installed where expected > at peoplemysql.cgi line 14 Did you get MySQL from sunfreeware.com or build MySQL yourself? if you built it your

Re: DBD::mysql error

2004-11-13 Thread Chasecreek Systemhouse
[sorry for following-up my own post] On Sat, 13 Nov 2004 23:38:46 -0500, Chasecreek Systemhouse <[EMAIL PROTECTED]> wrote: > On Sat, 13 Nov 2004 15:10:46 +0530, Chandrakant Reddy Regarding this: >> for module DBD::mysql: ld.so.1: perl: fatal: libmysqlclient.so.10 You may just need to correct a