Re: New Website for Perl Beginners: perlmeme.org

2005-10-03 Thread Shlomi Fish
Hi Randal! Thank you very much for your commentary. Now for my comments. On Sunday 02 October 2005 14:17, Randal L. Schwartz wrote: Shlomi == Shlomi Fish [EMAIL PROTECTED] writes: Shlomi Hi good people, Shlomi there's a new web-site for Perl beginners - perlmeme.org - Shlomi

Re: New Website for Perl Beginners: perlmeme.org

2005-10-03 Thread Rob Bryant
On 10/2/05, Ovid [EMAIL PROTECTED] wrote: snip There's more and nitpicking seems petty snip Yep, you're right on the money with that. It does indeed seem petty. So did Randal I am Unhealthily Obsessed With The Flinstones Schwartz's earlier post. One would assume (apparently erroneously, however)

RE: New Website for Perl Beginners: perlmeme.org

2005-10-03 Thread Charles K. Clarkson
Rob Bryant mailto:[EMAIL PROTECTED] wrote: : On 10/2/05, Ovid [EMAIL PROTECTED] wrote: : snip : : There's more and nitpicking seems petty snip : : Yep, you're right on the money with that. It does indeed seem : petty. Perhaps that's why he left it out. Are you are arguing that Ovid's

Re: New Website for Perl Beginners: perlmeme.org

2005-10-03 Thread JupiterHost.Net
Gavin Henry wrote: Randal L. Schwartz said the following on 02/10/05 13:17: Shlomi == Shlomi Fish [EMAIL PROTECTED] writes: Shlomi Hi good people, Shlomi there's a new web-site for Perl beginners - perlmeme.org - Shlomi http://perlmeme.org/ Unless it's hidden, I'm not finding any

FW: Re: Urgent help in h2xs

2005-10-03 Thread sam joseph
Hi All 1) h2xs -n modulefolder sam.h 2) modifyimg the makefile.pl by adding PROTOTYPES:ENABLE int fnSam(void) and also modifying the include statement as #include sam.h 3) modify the .xs file by adding the OBJECT mapping and have to also comment the VERSION_FROM for being able to compile

Re: New Website for Perl Beginners: perlmeme.org

2005-10-03 Thread John Von Essen
You guys are a bunch of hypocrites. Okay, so Shlomi didn't link to the holy learn.perl.org site. Big deal. Its his site, it is a self-contained learning site and he doesn't feel his audience has anything to gain by going to learn.perl.org. And to be perfectly honest, trying to learn perl from

Re: Urgent help in h2xs

2005-10-03 Thread Sisyphus
- Original Message - From: sam joseph [EMAIL PROTECTED] To: [EMAIL PROTECTED]; beginners@perl.org; [EMAIL PROTECTED] Sent: Monday, October 03, 2005 12:58 AM Subject: Re: Urgent help in h2xs Hi All I appreciate your help I have MSVC++ version 6.0 Ok - did you get it set up

Re: New Website for Perl Beginners: perlmeme.org

2005-10-03 Thread Shlomi Fish
Hi Randal! Thank you very much for your commentary. Now for my comments. On Sunday 02 October 2005 14:17, Randal L. Schwartz wrote: Shlomi == Shlomi Fish [EMAIL PROTECTED] writes: Shlomi Hi good people, Shlomi there's a new web-site for Perl beginners - perlmeme.org - Shlomi

regd. connectivity to db2

2005-10-03 Thread mayank . ahuja
Hi Perlers.. I am not able to connect to my perl script to databaseCould u plz help me.. my Code in the simple form is listed below... and the error i have listed in BOLD letters. use strict; use warnings; my $dbh = DBI-connect(

Re: New Website for Perl Beginners: perlmeme.org

2005-10-03 Thread JupiterHost.Net
Gavin Henry wrote: Randal L. Schwartz said the following on 02/10/05 13:17: Shlomi == Shlomi Fish [EMAIL PROTECTED] writes: Shlomi Hi good people, Shlomi there's a new web-site for Perl beginners - perlmeme.org - Shlomi http://perlmeme.org/ Unless it's hidden, I'm not finding any

Re: BEGIN block question

2005-10-03 Thread Peter Rabbitson
On Sun, Oct 02, 2005 at 12:34:53PM -0700, John W. Krahn wrote: To sum what up? What who is saying? What previous e-mail? Crap... I apologize, the email was way too long so I stripped it entirely, being sure that the list will se Jendas reply. It was very thorough so I am posting it below:

Re: use strict, aliases, local

2005-10-03 Thread Peter Scott
On Sun, 02 Oct 2005 21:08:48 +0200, Gerard Robin wrote: I pick up this example in a tutorial (it is old but it exists and there are many examples and most of them are understandable (imho)) because I searched some example of scripts which used local. I encounter some problems to figure out

sort with special order

2005-10-03 Thread JupiterHost.Net
Howdy List :) I have a list of strings that start with an uppercase B, Q, or Z I need to sort them so they are in order of Q, B , then Z my @sample_strings = qw(Bang Quiet Zing Zop Quid Boo); I need them to be sorted as: Quid Quiet Bang Boo Zing Zop I'd like to sort() them but can't

multiple overlapping matches in a regex

2005-10-03 Thread Frank Geueke, III
There's probably a really simple answer to this one. I'm trying to find multiple matches to a regex within a file, replace them, and save in another file... #!/usr/bin/perl -w use warnings; use strict; open(INFILE, 1.ls) or die(Couldn't open input file.\n); open(OUTFILE, 3.ls) or die(Couldn't

Re: sort with special order

2005-10-03 Thread Xavier Noria
On Oct 3, 2005, at 17:35, JupiterHost.Net wrote: I need to sort them so they are in order of Q, B , then Z The real array will have between 1 to 100 items, just FYI They all go in ASCII relative order except B - Q, thus a way to get it is to handle that special case and delegate to cmp

Re: sort with special order

2005-10-03 Thread Jeff 'japhy' Pinyan
On Oct 3, JupiterHost.Net said: I have a list of strings that start with an uppercase B, Q, or Z I need to sort them so they are in order of Q, B , then Z Any ideas or input on how to efficiently do that with sort() or even map() is most appreciated :) perldoc -f sort|-f map didn't appear to

Recursive processing using $File::Find and Win32 paths

2005-10-03 Thread DMcGovern
I have lots of HTML files in lots of directories that I would like to clean up via the 3rd party HTMLTidy utility. I have written a script (partially based on Cookbook Recipe 9.7) to process these files recursively. When I first ran my script, it failed on the first file with a No such file

Re: [SPAM DETECT] Re: sort with special order

2005-10-03 Thread Xavier Noria
On Oct 3, 2005, at 18:16, Jeff 'japhy' Pinyan wrote: On Oct 3, JupiterHost.Net said: I have a list of strings that start with an uppercase B, Q, or Z I need to sort them so they are in order of Q, B , then Z Any ideas or input on how to efficiently do that with sort() or even map() is

Re: sort with special order

2005-10-03 Thread JupiterHost.Net
On Oct 3, JupiterHost.Net said: I have a list of strings that start with an uppercase B, Q, or Z I need to sort them so they are in order of Q, B , then Z Any ideas or input on how to efficiently do that with sort() or even map() is most appreciated :) perldoc -f sort|-f map didn't appear to

Re: [SPAM DETECT] Re: sort with special order

2005-10-03 Thread Jeff 'japhy' Pinyan
On Oct 3, Xavier Noria said: On Oct 3, 2005, at 18:16, Jeff 'japhy' Pinyan wrote: my @sorted = map { tr/123/QBZ/; $_ } sort map { tr/QBZ/123/; $_ } @data; There's a potential gotcha there: since all Qs and Bs are being swapped lexicographic order after the first character

recommendation: which web portal software?

2005-10-03 Thread RICHARD FERNANDEZ
Hi folks, I'm doing some volunteer work in my community, and I've been asked to take over the administration for a small website. The site was set up over 5 years ago and is basically a set of HTML pages and PHP scripts that were thrown together to meet the need at the time. Now that I'm

Re: recommendation: which web portal software?

2005-10-03 Thread Jay Savage
On 10/3/05, RICHARD FERNANDEZ [EMAIL PROTECTED] wrote: Hi folks, I'm doing some volunteer work in my community, and I've been asked to take over the administration for a small website. The site was set up over 5 years ago and is basically a set of HTML pages and PHP scripts that were thrown

RE: sort with special order

2005-10-03 Thread Bakken, Luke
JupiterHost.Net wrote: On Oct 3, JupiterHost.Net said: I have a list of strings that start with an uppercase B, Q, or Z I need to sort them so they are in order of Q, B , then Z Any ideas or input on how to efficiently do that with sort() or even map() is most appreciated :) perldoc -f

Re: sort with special order

2005-10-03 Thread Jay Savage
On 10/3/05, Bakken, Luke [EMAIL PROTECTED] wrote: JupiterHost.Net wrote: On Oct 3, JupiterHost.Net said: I have a list of strings that start with an uppercase B, Q, or Z I need to sort them so they are in order of Q, B , then Z Any ideas or input on how to efficiently do that with

Re: Recursive processing using $File::Find and Win32 paths

2005-10-03 Thread John W. Krahn
[EMAIL PROTECTED] wrote: I have lots of HTML files in lots of directories that I would like to clean up via the 3rd party HTMLTidy utility. I have written a script (partially based on Cookbook Recipe 9.7) to process these files recursively. When I first ran my script, it failed on the

Re: sort with special order

2005-10-03 Thread John W. Krahn
Bakken, Luke wrote: JupiterHost.Net wrote: On Oct 3, JupiterHost.Net said: I have a list of strings that start with an uppercase B, Q, or Z I need to sort them so they are in order of Q, B , then Z Any ideas or input on how to efficiently do that with sort() or even map() is most appreciated

Test for integer

2005-10-03 Thread Zielfelder, Robert
Greetings, How can I test the value of a variable to find out if it is an integer or a string? Rz

Re: Test for integer

2005-10-03 Thread Robin
On Tuesday 04 October 2005 09:01, Zielfelder, Robert wrote: How can I test the value of a variable to find out if it is an integer or a string? Ultra simple way: if ($myVar =~ /^\d+$/) { print $myVar is a number\n; } else { print $myVar contains things that aren't numbers\n; } More detail at:

Re: sort with special order

2005-10-03 Thread Jeff 'japhy' Pinyan
[sorry, PINE has become very confused about who said what] On Oct 3, Jay Savage said: On 10/3/05, Bakken, Luke [EMAIL PROTECTED] wrote: JupiterHost.Net wrote: On Oct 3, JupiterHost.Net said: I have a list of strings that start with an uppercase B, Q, or Z I need to sort them so they are

Need help with Perl Book

2005-10-03 Thread Bobby Jafari
Hi All, I am looking for a suitable Perl Book to buy. I use Perl mainly for running test scripts on Telecommunications based products. I use Net::SNMP and Net::Telnet extensively. I also need a book on a good GUI Interface for Perl. Is TK a good option? What are other GUI support available for

Array or arrays

2005-10-03 Thread Jabir Ahmed
$file=$ARGV[0] || die File not found $!; my %uni=(); open (FH,sort $file|); $reccnt=0; while (FH) { $line=$_; my @details=split('\t',$line); [EMAIL PROTECTED]; $reccnt+=1; } $file=$ARGV[0] || die File not found $!; my %uni=(); open (FH,sort $file|); $reccnt=0;