Ruby

2007-03-30 Thread Octavian Rasnita
Hi, I have used the cpan shell under Windows, and a strange warning appeared. Does anyone know what it is? I have just installed ActivePerl 5.8.8, build 820, but it happened the same with the build 819. Here it is: D:\Documents and Settings\octavian>cpan Warning [c:\ruby\bin\inputrc.euro l

Re: perl

2007-03-30 Thread mani kandan
My files are in cgi-bin directory It reads as *C:\Program Files\Apache Group\Apache2\cgi-bin\first.pl* Yes it Programfiles then Apache Group and then Apache2 please clarify mani Go to the folder that first.pl is in (should be cgi-bin). Press backspace to go up one

Re: hash referrences and such

2007-03-30 Thread Chad Kemp
Mathew Snyder wrote: Chad Kemp wrote: Mathew, try to test every condition going INTO the hash (or hashes) before you actually assign a value to a key. as mentioned earlier, hashes must be key/value pairs. the key will auto-vivify if a key is "new" but only if a corresponding value accom

Re: Regexp non-alphanumerics to spaces

2007-03-30 Thread John W. Krahn
Dr.Ruud wrote: > "John W. Krahn" schreef: >>Rob Dixon: >>>Grant: > Hello, can you guys show me how to convert each non-alphanumeric character in a string to a space, and then convert any number of consecutive spaces in the string to a single space? >>>$text =~ s/[^[:alnum:]]/ /g; >>>$t

Re: Regexp non-alphanumerics to spaces

2007-03-30 Thread Dr.Ruud
"John W. Krahn" schreef: > Rob Dixon: >> Grant: >>> Hello, can you guys show me how to convert each non-alphanumeric >>> character in a string to a space, and then convert any number of >>> consecutive spaces in the string to a single space? >> >> $text =~ s/[^[:alnum:]]/ /g; >> $text =~ s/\s+/ /

Re: Exiting loops

2007-03-30 Thread Karyn Williams
At 03:05 PM 3/30/07 +0100, Rob Dixon wrote: >Karyn Williams wrote: >> >> I have a sh script as follows. The script worked OK until the year rolled >> over. My (now deleted) simple sh way of figuring the month and year blew >> up. I decided to rewrite the script in perl because of the date/time >> f

Re: www::mechanize question

2007-03-30 Thread Mumia W.
On 03/30/2007 01:20 PM, Jason Roth wrote: I'm using www::mechanize to submit a form to a website, and one of the fields is disabled (and enabled by javascript on the page which obviously isn't running). When I try to set a value for this field I get a "no such field" error. How to I set a value

Re: Regexp non-alphanumerics to spaces

2007-03-30 Thread John W. Krahn
Rob Dixon wrote: > Grant wrote: >> >> Hello, can you guys show me how to convert each non-alphanumeric >> character in a string to a space, and then convert any number of >> consecutive spaces in the string to a single space? >> >> If I need to specify exactly which characters I want converted to >

Re: Regexp non-alphanumerics to spaces

2007-03-30 Thread Grant
> Hello, can you guys show me how to convert each non-alphanumeric > character in a string to a space, and then convert any number of > consecutive spaces in the string to a single space? > > If I need to specify exactly which characters I want converted to > spaces, I'd be happy with just the "."

Re: www::mechanize question

2007-03-30 Thread Rob Dixon
Jason Roth wrote: I'm using www::mechanize to submit a form to a website, and one of the fields is disabled (and enabled by javascript on the page which obviously isn't running). When I try to set a value for this field I get a "no such field" error. How to I set a value for, and enable, dis

Re: Regexp non-alphanumerics to spaces

2007-03-30 Thread Rob Dixon
Grant wrote: Hello, can you guys show me how to convert each non-alphanumeric character in a string to a space, and then convert any number of consecutive spaces in the string to a single space? If I need to specify exactly which characters I want converted to spaces, I'd be happy with just the

Regexp non-alphanumerics to spaces

2007-03-30 Thread Grant
Hello, can you guys show me how to convert each non-alphanumeric character in a string to a space, and then convert any number of consecutive spaces in the string to a single space? If I need to specify exactly which characters I want converted to spaces, I'd be happy with just the "." character.

Re: Perl versus other scripting language

2007-03-30 Thread Jenda Krynicky
From: "Octavian Rasnita" <[EMAIL PROTECTED]> > Perl has a big advantage from the perspective of the initial programmer, but > a very big disadvantage from the perspective of the maintainer, and this is > "There are more ways to do it". I don't see this as a disadvantage. Different ways may be be

www::mechanize question

2007-03-30 Thread Jason Roth
I'm using www::mechanize to submit a form to a website, and one of the fields is disabled (and enabled by javascript on the page which obviously isn't running). When I try to set a value for this field I get a "no such field" error. How to I set a value for, and enable, disabled form fields? Th

Re: create gui

2007-03-30 Thread xavier mas
El Viernes 30 Marzo 2007 14:33, zentara escribió: > On Thu, 29 Mar 2007 20:35:21 +0200, [EMAIL PROTECTED] (xavier mas) > > wrote: > >Hi list, > > > >I want to create an interface with Per,l like a form for a database. > > Searching in cpan.org I found many Qtk and Tk modules, but I really don't > >

Re: create gui

2007-03-30 Thread xavier mas
El Viernes 30 Marzo 2007 17:24, Rob Dixon escribió: > xavier mas wrote: > > Hi list, > > > > I want to create an interface with Per,l like a form for a database. > > Searching in cpan.org I found many Qtk and Tk modules, but I really don't > > know what I need in order to create Perl programs that

Re: Perl versus other scripting language

2007-03-30 Thread Octavian Rasnita
Hi, Perl has a big advantage from the perspective of the initial programmer, but a very big disadvantage from the perspective of the maintainer, and this is "There are more ways to do it". Most programmers use to do some things in a certain way in perl, and they will be able to understand ve

Re: Perl versus other scripting language

2007-03-30 Thread Adriano Ferreira
On 3/30/07, Rob Dixon <[EMAIL PROTECTED]> wrote: Jean-Rene David wrote: > * Rob Dixon [2007.03.30 08:30]: >> - You could add Lua to the list. But then remove it - it's awful. > > FYI, I have read much harsher comments about perl on the lua mailing > list. I'm not surprised. People will always te

Re: create gui

2007-03-30 Thread Rob Dixon
xavier mas wrote: Hi list, I want to create an interface with Per,l like a form for a database. Searching in cpan.org I found many Qtk and Tk modules, but I really don't know what I need in order to create Perl programs that can be handled through an interface. Can you advise me on that?

Re: Perl versus other scripting language

2007-03-30 Thread Rob Dixon
Jean-Rene David wrote: * Rob Dixon [2007.03.30 08:30]: - You could add Lua to the list. But then remove it - it's awful. FYI, I have read much harsher comments about perl on the lua mailing list. I'm not surprised. People will always tend to take sides, however senseless it may be. I ignor

RE: Perl versus other scripting language

2007-03-30 Thread Michael Gargiullo
-Original Message- From: Nath, Alok (STSD) [mailto:[EMAIL PROTECTED] Sent: Friday, March 30, 2007 6:40 AM To: beginners@perl.org Subject: Perl versus other scripting language Hi Perlers ! In my project we are using lot of scripts (for various job launching activities )s

Re: Exiting loops

2007-03-30 Thread Rob Dixon
Karyn Williams wrote: I have a sh script as follows. The script worked OK until the year rolled over. My (now deleted) simple sh way of figuring the month and year blew up. I decided to rewrite the script in perl because of the date/time functions. It takes multiple commandline args (usernames)

Re: Perl versus other scripting language

2007-03-30 Thread Jean-Rene David
* Rob Dixon [2007.03.30 08:30]: > - You could add Lua to the list. But then remove > it - it's awful. FYI, I have read much harsher comments about perl on the lua mailing list. I ignored them at the time and will do the same here, though I wouldn't mind hearing more substantive criticisms. That i

Re: how to pass double quotes in a url from CGI script

2007-03-30 Thread Rob Dixon
Ravi Malghan wrote: Hi: I am having trouble passing double quotes when passing a url string. Everything after the double quotes does not go through. For example in the perl script below, the browser ends up going to http://appserver/arsys/forms/rearsp01/HPD%3AHelp+Desk/Default+User+View/?&qua

Re: Need to extract only the function name no brackets reqd.

2007-03-30 Thread Rob Dixon
Nath, Alok (STSD) wrote: Hi, I have this program which extract function names from the files. My only problem is I want to extract only the function names{no brackets () needed } . Currently its extract all words after word sub but it all returns the parentheses after th

Re: Perl versus other scripting language

2007-03-30 Thread Rob Dixon
Nath, Alok (STSD) wrote: Hi Perlers ! In my project we are using lot of scripts (for various job launching activities )some written in bash, some in perl.It's completely chaos and not organized. Now we want to revamp the whole scripting framework using some high level scripting lang

Re: scalar %hash

2007-03-30 Thread Boga Srinivas
Hi, This is the number of buckets in use and the total number of buckets in the hash. For more info please refer to the following url: http://www.perlmonks.org/?node_id=173677 -srini jonatan perry wrote: Hi you all :-) my name is Jonatan, I am new it this lists. I was wondering, why do p

Perl versus other scripting language

2007-03-30 Thread Nath, Alok (STSD)
Hi Perlers ! In my project we are using lot of scripts (for various job launching activities )some written in bash, some in perl.It's completely chaos and not organized. Now we want to revamp the whole scripting framework using some high level scripting lan

scalar %hash

2007-03-30 Thread jonatan perry
Hi you all :-) my name is Jonatan, I am new it this lists. I was wondering, why do print scalar %hash; return x/y result? what it mean? thanks :-)

RE: Need to extract only the function name no brackets reqd.

2007-03-30 Thread Jeff Pang
> >It is returning just 1.I think the result of the expression. Hello, Have you tested it?why that regex just return 1? See: $ perl -e '$_="sub myfunc_123(\$,\$){";my ($func_name) = /sub\s+(\w+)/;print $func_name' myfunc_123 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

RE: Need to extract only the function name no brackets reqd.

2007-03-30 Thread Nath, Alok (STSD)
Jeff, It is returning just 1.I think the result of the expression. -Original Message- From: Jeff Pang [mailto:[EMAIL PROTECTED] Sent: Friday, March 30, 2007 2:53 PM To: Nath, Alok (STSD); beginners@perl.org Subject: Re: Need to extract only the function name no brackets reqd. >

Re: Need to extract only the function name no brackets reqd.

2007-03-30 Thread Jeff Pang
> I have this program which extract function names from the files. > My only problem is I want to extract only the function names{no >brackets () needed } . > Currently its extract all words after word sub but it all >returns > the parentheses after that. > Hello, Given

Need to extract only the function name no brackets reqd.

2007-03-30 Thread Nath, Alok (STSD)
Hi, I have this program which extract function names from the files. My only problem is I want to extract only the function names{no brackets () needed } . Currently its extract all words after word sub but it all returns the parentheses after that. my $f