help please

2001-05-31 Thread tarek abo zamel
I would like some one to help me, i am so new in Perl:( i would like to know step be step, how to make cgi working in my free web site i have cgi_bin folder in my free web site, but it is empty, what sould i put inside it to make my cgi work? with best regards could someone send me an attach

help please

2003-02-04 Thread Benjamin Jeeves
I have a problem can you help? I have develop a program but need it to run a number of different scripts ready 3 mins on a file that will grow. Can anyone help me with this problem. -- Thank You Benjamin Jeeves -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

help please!

2003-02-06 Thread Benjamin Jeeves
Hi All I have a require statement that is run by my main program but I get a error "did not return a true value at ./connecttime.pl line 26, line 11811302." connecttime.pl is the main program and the script it is executing this to do pattern matching on the file that is passed to connecttime.p

Help please

2002-05-17 Thread Batchelor, Scott
Can anyone tell me why the heck my if statements aren't working in this subroutine. Everything else seems to work fine. Please excuse the debug code... sub 'pass_verify_syntax { print "Sub Called\n"; my($p) = @_; length($p) < $pwmin && print "Password too short. Minimum is $pwmin chara

Help Please

2009-09-10 Thread Jyoti
Can someone explain me what these symbols mean in regular expression: my $trim = sub {local($_)=shift; $$_ =~ s/^\s*//; $$_ =~ s/\s*$//;}; Thanks.

Re: help please

2001-05-31 Thread Paul
--- tarek abo zamel <[EMAIL PROTECTED]> wrote: > I would like some one to help me, i am so new in Perl:( > i would like to know step be step, how to make cgi working in my free > web site i have cgi_bin folder in my free web site, but it is empty, > what sould i put inside it to make my cgi w

RE: help please

2001-05-31 Thread Scott Thompson
(972) 342-5660 || || Web: http://www.unirez.com/ | Email: [EMAIL PROTECTED]|| ++===+++ > -Original Message- > From: tarek abo zamel [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 31, 2001 11:3

Re: help please!

2003-02-06 Thread Rob Dixon
Benjamin Jeeves wrote: > Hi All > > I have a require statement that is run by my main program but I get a > error "did not return a true value at ./connecttime.pl line 26, > line 11811302." connecttime.pl is the main program and the > script it is executing this to do pattern matching on the file

Re: help please!

2003-02-06 Thread R. Joseph Newton
Benjamin Jeeves wrote: > Hi All > > I have a require statement that is run by my main program but I get a error > "did not return a true value at ./connecttime.pl line 26, line > 11811302." connecttime.pl is the main program and the script it is executing > this to do pattern matching on the file

Newbie Help please.

2002-03-31 Thread SA
Hi Everyone- I'm just starting to learn perl programing. I'm doing this through the O'Reilly book: Learning Perl. I seem to be stuck on hashes. I was doing the exercise in the back of chapter 5. This program wants a hash with 3 keys and 3 values. It then asks for a string. That string is the

Re: Help Please

2002-04-30 Thread Josef E. Galea
Ok guys, thank you all for your suggestions. I solved the problem. It consisted of a bug with the text editor that saved the file as test.txt.txt. Rather lame actually. Thank you all Josef

Re: Help Please

2002-04-30 Thread Josef E. Galea
de, feel free to use it. This means that $contents[0] = line 1 $contents[1] = line 2 $contents[2] = line 3 - Original Message - From: Ron Powell To: 'Josef E. Galea' Sent: Tuesday, April 30, 2002 11:09 PM Subject: RE: Help Please Does the project you are working on

RE: Help Please

2002-04-30 Thread Mark Anderson
ed to loop through the data in the array just like you were in the file. /\/\ark -Original Message- From: Josef E. Galea [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 2:15 PM To: Ron Powell Cc: [EMAIL PROTECTED] Subject: Re: Help Please RE:

Re: Help please

2002-05-17 Thread bob ackerman
On Friday, May 17, 2002, at 09:40 AM, Batchelor, Scott wrote: > /([^a-zA-Z])\1/ did you mean to be checking for repeating non-alpha characters? if you are testing with repeating alpha characters, that test won't catch it.

RE: Help please

2002-05-17 Thread Jackson, Harry
Some Questions > -Original Message- > From: Batchelor, Scott [mailto:[EMAIL PROTECTED]] > Sent: 17 May 2002 17:40 > To: '[EMAIL PROTECTED]' > Subject: Help please > > > Can anyone tell me why the heck my if statements aren't > working in th

RE: Help please

2002-05-17 Thread Jackson, Harry
> -Original Message- > From: bob ackerman [mailto:[EMAIL PROTECTED]] > > > > On Friday, May 17, 2002, at 09:40 AM, Batchelor, Scott wrote: > > > /([^a-zA-Z])\1/ > > did you mean to be checking for repeating non-alpha characters? > if you are testing with repeating alpha characters,

RE: Help please

2002-05-17 Thread Batchelor, Scott
ons > -Original Message- > From: Batchelor, Scott [mailto:[EMAIL PROTECTED]] > Sent: 17 May 2002 17:40 > To: '[EMAIL PROTECTED]' > Subject: Help please > > > Can anyone tell me why the heck my if statements aren't > working in this > subroutine.

RE: Help please

2002-05-17 Thread Batchelor, Scott
Ack sorry I meant to say the first if statement catches repeating NON Alpha characters... such as "%%" -Original Message- From: Batchelor, Scott [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 1:18 PM To: 'Jackson, Harry'; [EMAIL PROTECTED] Subject:

Regex Help Please!?

2002-06-27 Thread Balint, Jess
Hello all. I am trying to 'code' an address into a certain format. The format is as follows: first 4 digits of street # first 4 street name first 2 of address line 2 first 3 of zip code The data is a pipe delimited file with the following format: consumer_id|address_line_1|address_line_2|zip_co

Script Help Please

2001-11-26 Thread Craig Sharp
Hi all, I am lost. I have the following script that opens the log file WUGEvent.log and looks for the statment "UP", replaces spaces and writes out the new log file. It works great! Here is the problem. I need to read in another file (wuglist.txt) containing a list of server names and then

Regex help Please...

2002-01-31 Thread RArul
I know this is not a good RegEx. Can I see some criticism and fine-tuning of this RegEx that I came up with? Objective: To parse the path to drive, directory and file name. Here is what I came up with. # $fullpath = "C:/TopDir/outer/inner/file.fl"; ($drive, $pat

Debug Help Please

2008-07-03 Thread Andy
Greets I wrote this script to parse information from some log files. It Seems to work , or look like it works. In the end I get the log creation of .csv log files with no information. I am learning how to write this , I know there are tons of ways to do this. But My Boss made a decision to keep a

RegEx help please ...

2008-08-11 Thread Saya
Hi, I have the following issue: my $s = "/metadata-files/test-desc.txt,/metadata-files/birthday.txt,/ web-media/images/bday-after-help.jpg,javascript:popUp('/pop-ups/ birthday/main.html','bday-pics',785,460);" Now I want $s to be like: "/metadata-files/test-desc.txt,/metadata- files/birthday.txt

Re: Help Please

2009-09-10 Thread Shawn H Corey
Jyoti wrote: Can someone explain me what these symbols mean in regular expression: my $trim = sub {local($_)=shift; $$_ =~ s/^\s*//; $$_ =~ s/\s*$//;}; Thanks. Yes, it's all explained in: http://perldoc.perl.org/5.8.8/perlretut.html http://perldoc.perl.org/5.8.8/perlre.html -- Ju

RE: Help Please

2009-09-10 Thread Ajay Kumar
com] Sent: Thursday, September 10, 2009 5:39 PM To: Jyoti Cc: beginners@perl.org Subject: Re: Help Please Jyoti wrote: > Can someone explain me what these symbols mean in regular expression: > > my $trim = sub {local($_)=shift; > $$_ =~ s/^\s*//; > $$_ =~ s/\s*$//;}; > &g

Re: Help Please

2009-09-10 Thread Philip Potter
2009/9/10 Ajay Kumar : > And > $$_ you can understand like below > > > $name="ajay"; > $class="name" > > $$class== ajay Don't use symbolic references. This will not compile under "use strict;" or "use strict 'refs';". If you need references, use hard references: $name = "ajay"; $class = \$name; #

Re: Help Please

2009-09-10 Thread Jyoti
Thanks All... Going through documentation as well as short explanation was useful.. I got it [?] Cheers!!! <<330.png>>

Re: Help Please

2009-09-10 Thread Peter Scott
On Thu, 10 Sep 2009 17:43:47 +0530, Ajay Kumar wrote: > And > $$_ you can understand like below > > > $name="ajay"; > $class="name" > > $$class== ajay It is unlikely that the original code was called with symbolic references like you have just explained. More likely it was called with real r

Re: Help Please

2009-09-10 Thread Shawn H Corey
Peter Scott wrote: Unless it's written by someone whose Perl learning stopped with Perl 4. Or someone with a C background and has yet to learn all the nuances or Perl. :) -- Just my 0.0002 million dollars worth, Shawn Programming is as much about organization and communication as it

Re: Help Please

2009-09-10 Thread Peter Scott
On Thu, 10 Sep 2009 14:01:36 +, Peter Scott wrote: > Unless it's written by someone whose Perl learning stopped with Perl 4. Scratch that, I was so focussed on the body of the subroutine I forgot the context. > sub trim { $_[0] =~ s/^\s*(.*?)\s*$/$1/ } my $trim = sub { $_[0] =~ s/^\s*(.*?)\

Re: Help Please

2009-09-10 Thread John W. Krahn
Jyoti wrote: Can someone explain me what these symbols mean in regular expression: my $trim = sub {local($_)=shift; $$_ =~ s/^\s*//; ^ means that you want to anchor the pattern at the beginning of the string in $$_. \s is a character class that matches the whitespace characters " ", "\

Regexp help please

2006-07-13 Thread Brano Gerzo
hello all! I'd like to request for help with this regexp. I want match these examples: word word 3 word word 3 word word en 3 word word en,pt 3 word word en,pt 1cd ok, here is regexp I wrote: ^\s*(\d{1,2}\s+)?([\w\s\+:]+)(sq|hy|ay|bs|bg|hr|cs|da|nl|en|et|fi|fr|de|gr|he|hu|zh|it|ja|kk|lv|pl|pt|pb

need help please

2005-04-24 Thread HOTFUNINTHACITY
Hi My program is to send data using an online form. I have the web page for the form. But the web page does not receive the data from the cgi file. I check my work in DOS. When I type perl -c bonus.cgi I get a message tell me syntax ok. But when I check with : perl -w bonus.cgi I get th

PERL module: Help please!

2001-06-08 Thread Shawn
I will start by saying this is largely a learning excersize. I want to get to the point where I can write a PERL module using some C code in the backend. I would be greatful as hell for any help on this! I don't know if this makes enough sense to grok, but here goes: I want the module to use com

A little help please?

2004-01-30 Thread Joel
I'm interested in learning to program perl, and I just got ActivePerl for Windows. I am running XP and have a few questions. First off, how do I run the interpreter under Windows, preferably without the XP command prompt? Also, when I opened perl, it looked like the command prompt. Is the comma

PERL - JAVASCRIPT Help please

2002-02-18 Thread documents
Hi, I am using a perl program to invoke a small javascript to first open a new window, and then another javascript to write some text or form to the new window. I can't get it to work in Netscape 4.72 I will open a window but won't write to it. It works fine in IE 5.0 The problem is between --

Re: Newbie Help please.

2002-03-31 Thread Billie
Hi The term $map($some_string) actually means 2 scalar variables, one is $map and the other is $some_string. You get warning of uninitialized variable because $map is never declared before. The correct way to refer to a value in hash is $map{$some_string}. I think there is a typo in the book Ho

Re: Newbie Help please.

2002-03-31 Thread Ahmed Moustafa
Sa wrote: > #!/usr/bin/perl -w > $map{"red"} = "apple"; > $map{"green"} = "grass"; > $map{"blue"} = "ocean"; > print "A string please: "; chomp ($some_string = ); > print "The value for $some_string is $map($some_string)\n"; > > When I run it though I get the following complaint from perl: > > A

RE: Newbie Help please.

2002-03-31 Thread Timothy Johnson
ent: 3/31/02 5:04 AM Subject: Re: Newbie Help please. Sa wrote: > #!/usr/bin/perl -w > $map{"red"} = "apple"; > $map{"green"} = "grass"; > $map{"blue"} = "ocean"; > print "A string please: "; chomp ($some_string = ); &g

help please with syntax!

2002-04-01 Thread M z
Can someone help me decode this? or if not, please recommend a good reference book or site for my specific needs! thanks i wrote this script for use of active perl installed on win98 and used two modules #!C:\Perl\bin -w use HTML::Parse; use HTML::FormatText; # My question is here, insofar

RE: Regex Help Please!?

2002-06-27 Thread Tom Stewart
ta = split(/|/,$_); } -Original Message- From: Balint, Jess [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 12:56 PM To: '[EMAIL PROTECTED]' Subject: Regex Help Please!? Hello all. I am trying to 'code' an address into a certain format. The format is as follows: firs

RE: Regex Help Please!?

2002-06-27 Thread David . Wagner
You will need to escape the | as \| otherwise won't do what you think. I checked to make sure. Wags ;) -Original Message- From: Tom Stewart [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 11:18 To: Balint, Jess; [EMAIL PROTECTED] Subject: RE: Regex Help Please!?

Re: Regex Help Please!?

2002-06-27 Thread John W. Krahn
Jess Balint wrote: > > Hello all. I am trying to 'code' an address into a certain format. The > format is as follows: > > first 4 digits of street # > first 4 street name > first 2 of address line 2 > first 3 of zip code > > The data is a pipe delimited file with the following format: > > cons

RE: Script Help Please

2001-11-26 Thread Jonathan E. Paton
> Can anyone confirm if I understand this right: > > if ( $username =~ /@/ ) > { >$_ = $username; >($username) = /(.*)\@/; > } > > The part > ($username) = /(.*)\@/; > removes the @ symbol? Yes, but what if you've got two @'s? ;-) The two lines in the 'if' can be rewritten as: $us

Re: Script Help Please

2001-11-26 Thread John W. Krahn
Craig Sharp wrote: > > I am lost. I have the following script that opens the log file WUGEvent.log and >looks for the > statment "UP", replaces spaces and writes out the new log file. It works great! > > Here is the problem. I need to read in another file (wuglist.txt) containing a list >of

Re: Script Help Please

2001-11-26 Thread Craig Sharp
John, Thanks for the info. I am a bit confused in the first part of the script. my %servers; (This is defining a hash?) open (I understand) { chomp (my @temp = ); (Removing the newline from each entry) @server{ @temp } =(); (What's this do?); } Thanks, Craig >>> "John W. Krahn" <[EMAIL PROT

RE: Script Help Please

2001-11-26 Thread Scott Ryan
November 2001 12:45 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Script Help Please Hi all, I am lost. I have the following script that opens the log file WUGEvent.log and looks for the statment "UP", replaces spaces and writes out the new log file. It works great! Here is the p

Re: Script Help Please

2001-11-26 Thread Randal L. Schwartz
> "Craig" == Craig Sharp <[EMAIL PROTECTED]> writes: Craig> my %servers; (This is defining a hash?) Craig> open (I understand) Craig> { Craig> chomp (my @temp = ); (Removing the newline from each entry) Craig> @server{ @temp } =(); (What's this do?); Craig> } It's a hash slice, which contra

Re: Regex help Please...

2002-01-31 Thread John
Couldn't it be: m#^([^\\/]+)(.*)([^\\/]+)$# ) At Thursday, 31 January 2002, [EMAIL PROTECTED] wrote: >I know this is not a good RegEx. Can I see some criticism and fine- tuning of >this RegEx that I came up with? > >Objective: To parse the path to drive, directory and file name. > >Here is wha

Re: Regex help Please...

2002-01-31 Thread Curtis Poe
--- [EMAIL PROTECTED] wrote: > I know this is not a good RegEx. Can I see some criticism and fine-tuning of > this RegEx that I came up with? > > Objective: To parse the path to drive, directory and file name. > > Here is what I came up with. > > # > $fullpath =

RE: Regex help Please...

2002-01-31 Thread Nikola Janceski
: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Regex help Please... --- [EMAIL PROTECTED] wrote: > I know this is not a good RegEx. Can I see some criticism and fine-tuning of > this RegEx that I came up with? > > Objective: To parse the path to drive, directory and file name.

Re: Debug Help Please

2008-07-03 Thread John W. Krahn
Andy wrote: Greets Hello, I wrote this script to parse information from some log files. It Seems to work , or look like it works. In the end I get the log creation of .csv log files with no information. I am learning how to write this , I know there are tons of ways to do this. But My Boss m

Re: Debug Help Please

2008-07-03 Thread Andy
Well Disregard the above script I made changes that I think were needed, but I still have no output in the .csv files #!/usr/bin/perl #use strict; #use warnings; #Define LogFiles my $dateroot="$ARGV[0]"; # Value should be 2-digit month my $outgoing="outgoing_xferlog.$dateroot.csv"; # This

Re: Debug Help Please

2008-07-03 Thread John W. Krahn
Andy wrote: Well Disregard the above script I made changes that I think were needed, but I still have no output in the .csv files You still have some of the same mistakes that were in the program the last time you posted it. Have you read my reply to your first posting yet? John -- Perl is

Re: Debug Help Please

2008-07-04 Thread Andy
On Jul 4, 1:16 am, [EMAIL PROTECTED] (John W. Krahn) wrote: > Andy wrote: > > Well Disregard the above script I made changes that I think were > > needed, but I still have no output in the .csv files > > You still have some of the same mistakes that were in the program the > last time you posted it

Re: Debug Help Please

2008-07-05 Thread John W. Krahn
Andy wrote: Greets Hello, Thanks for your earlier help, but I am still stuck. I took your advice and I believe I put together the script as you said. Except that you apparently haven't yet enabled the warnings and strict pragmas in your program to help you find your mistakes. I decid

Re: Debug Help Please

2008-07-07 Thread Andy
On Jul 5, 9:54 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > Andy wrote: > > > Greets > > Hello, > > > Thanks for your earlier help, but I am still stuck. > > > I took your advice and I believe I put together the script as you > > said. > > Except that you apparently haven't yet enabled the warnin

Re: Debug Help Please

2008-07-07 Thread Rob Dixon
Andy wrote: > > Funny how when you talk to different people you get different ways of > looking at it. > > One of the Perl guys at my office. told me that I can use > use strict; > use warnings; > > but he said , he really doesn't because he wants the script to do what > it needs to do... Then

Re: Debug Help Please

2008-07-07 Thread John W. Krahn
Andy wrote: Funny how when you talk to different people you get different ways of looking at it. Yes, that is how the world works. In Perl there is the expression TIMTOWTDI (There Is More Than One Way To Do It) which means that you will probably get different opinions on "The Right Way" to

Re: Debug Help Please

2008-07-07 Thread Andy
On Jul 7, 11:53 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > Andy wrote: > > > Funny how when you talk to different people you get different ways of > > looking at it. > > > One of the Perl guys at my office. told me that I can use > > use strict; > > use warnings; > > > but he said , he really doesn

Re: Debug Help Please

2008-07-08 Thread Andy
On Jul 7, 4:33 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > Andy wrote: > > > Funny how when you talk to different people you get different ways of > > looking at it. > > Yes, that is how the world works. In Perl there is the expression > TIMTOWTDI (There Is More Than One Way To Do It) which mea

Re: Debug Help Please

2008-07-08 Thread Andy
On Jul 7, 2:16 pm, [EMAIL PROTECTED] (Andy) wrote: > On Jul 7, 11:53 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > > > > > Andy wrote: > > > > Funny how when you talk to different people you get different ways of > > > looking at it. > > > > One of the Perl guys at my office. told me that I can use >

Re: Debug Help Please

2008-07-09 Thread Chris Charley
- Original Message - From: "Andy" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: Sent: Tuesday, July 08, 2008 9:31 PM Subject: Re: Debug Help Please On Jul 7, 2:16 pm, [EMAIL PROTECTED] (Andy) wrote: On Jul 7, 11:53 am, [EMAIL PROTECTED] (Rob Dixon) wrote:

Re: Debug Help Please

2008-07-14 Thread Peter Scott
On Mon, 07 Jul 2008 05:16:10 -0700, Andy wrote: > One of the Perl guys at my office. told me that I can use > use strict; > use warnings; > > but he said , he really doesn't because he wants the script to do what > it needs to do... And if one of "the car guys" at your office announced that he'd

Re: RegEx help please ...

2008-08-11 Thread Mr. Shawn H. Corey
On Mon, 2008-08-11 at 14:02 -0700, Saya wrote: > Hi, > > I have the following issue: > > my $s = "/metadata-files/test-desc.txt,/metadata-files/birthday.txt,/ > web-media/images/bday-after-help.jpg,javascript:popUp('/pop-ups/ > birthday/main.html','bday-pics',785,460);" > > Now I want $s to be l

Re: RegEx help please ...

2008-08-11 Thread Rob Dixon
Saya wrote: > > I have the following issue: > > my $s = "/metadata-files/test-desc.txt,/metadata-files/birthday.txt,/ > web-media/images/bday-after-help.jpg,javascript:popUp('/pop-ups/ > birthday/main.html','bday-pics',785,460);" > > Now I want $s to be like: "/metadata-files/test-desc.txt,/meta

Re: RegEx help please ...

2008-08-11 Thread Rob Dixon
Mr. Shawn H. Corey wrote: > On Mon, 2008-08-11 at 14:02 -0700, Saya wrote: >> >> I have the following issue: >> >> my $s = "/metadata-files/test-desc.txt,/metadata-files/birthday.txt,/ >> web-media/images/bday-after-help.jpg,javascript:popUp('/pop-ups/ >> birthday/main.html','bday-pics',785,460);"

Re: RegEx help please ...

2008-08-11 Thread Mr. Shawn H. Corey
On Mon, 2008-08-11 at 23:30 +0100, Rob Dixon wrote: > Mr. Shawn H. Corey wrote: > > On Mon, 2008-08-11 at 14:02 -0700, Saya wrote: > >> > >> I have the following issue: > >> > >> my $s = "/metadata-files/test-desc.txt,/metadata-files/birthday.txt,/ > >> web-media/images/bday-after-help.jpg,javascri

Re: RegEx help please ...

2008-08-11 Thread Rob Dixon
Mr. Shawn H. Corey wrote: > On Mon, 2008-08-11 at 23:30 +0100, Rob Dixon wrote: >> Mr. Shawn H. Corey wrote: >>> On Mon, 2008-08-11 at 14:02 -0700, Saya wrote: I have the following issue: my $s = "/metadata-files/test-desc.txt,/metadata-files/birthday.txt,/ web-media/images

Re: Regexp help please

2006-07-13 Thread Dr.Ruud
Brano Gerzo schreef: > hello all! > > I'd like to request for help with this regexp. I want match > these examples: > > word word > 3 word word > 3 word word en > 3 word word en,pt > 3 word word en,pt 1cd > > ok, here is regexp I wrote: > ^\s*(\d{1,2}\s+)?([\w\s\+:]+) > (sq|hy|ay|bs|bg|hr|cs|da|nl|

Re: Regexp help please

2006-07-13 Thread Brano Gerzo
Dr.Ruud [DR], on Thursday, July 13, 2006 at 21:05 (+0200) made these points: DR> I don't understand what you try to match with "[\w\s\+:]+". It matches DR> any series of characters that belong to the character class containing DR> [[:word:]], [[:space:]], a plus and a colon. So "a b :c" would matc

Re: Regexp help please

2006-07-13 Thread D. Bolliger
Brano Gerzo am Donnerstag, 13. Juli 2006 21:23: [...] > yes, my example was ambiguous sorry, for that. Here are more examples: > > word > word word > word word word > 1 word > 1 word word word > 1 word en,pt,sk > 1 word en 1cd > > so: > - first digits are optional > - then it is followed by word(s)

Re: Regexp help please

2006-07-13 Thread Brano Gerzo
D. Bolliger [DB], on Thursday, July 13, 2006 at 21:48 (+0200) typed the following: DB> This data format is ambigous, consider: I know, but I count with it in this case. This regexp is used only for commands to bots, so there should be some "small" errors in parsing :) if it passes to language,

Re: Regexp help please

2006-07-13 Thread Brano Gerzo
Dr.Ruud [DR], on Thursday, July 13, 2006 at 21:05 (+0200) wrote these comments: as you helped me much, here is example of RE: my $re = '^\s*(?:(\d+)\s+)?(\w+(?:\s+\w+)*?)(?:\s+((?:sq|hy|ay|bs|bg|hr|cs|da|nl|en|et|fi|fr|de|gr|he|hu|zh|it|ja|kk|lv|pl|pt|pb|ro|ru|sr|sk|sl|es|sv|th|tr|uk|al)(?:\s*,

Re: Regexp help please

2006-07-13 Thread Dr.Ruud
Brano Gerzo schreef: > Dr.Ruud [DR], on Thursday, July 13, 2006 at 21:05 (+0200) made these > points: > >> I don't understand what you try to match with "[\w\s\+:]+". It >> matches any series of characters that belong to the character class >> containing [[:word:]], [[:space:]], a plus and a colon.

Re: Regexp help please

2006-07-13 Thread Dr.Ruud
Brano Gerzo schreef: > Dr.Ruud [DR], on Thursday, July 13, 2006 at 21:05 (+0200) wrote these > comments: > > > as you helped me much, here is example of RE: > > my $re = > '^\s*(?:(\d+)\s+)?(\w+(?:\s+\w+)*?)(?:\s+((?:sq|hy|ay|bs|bg|hr|cs|da|nl| en|et|fi|fr|de|gr|he|hu|zh|it|ja|kk|lv|pl|pt|pb|ro|ru|

Re: Regexp help please

2006-07-13 Thread Dr.Ruud
"Dr.Ruud" schreef: > Slight revision, that fails on the last line: More assuming revision: #!/usr/bin/perl use warnings ; use strict ; sub SOB { '\A' } sub EOB { '\z' } sub OR { join '|', @_ } sub sp { '[[:blank:]]+' } sub capture { "(@_)" } sub optional

RE: Regexp help please

2006-07-13 Thread Smith, Derek
-Original Message- From: Dr.Ruud [mailto:[EMAIL PROTECTED] Sent: Thursday, July 13, 2006 5:24 PM To: beginners@perl.org Subject: Re: Regexp help please "Dr.Ruud" schreef: > Slight revision, that fails on the last line: More assuming revision: #!/usr/bin/perl use war

Re: Regexp help please

2006-07-13 Thread Dr.Ruud
Smith, Derek schreef: > Dr.Ruud: >> sub SOB { '\A' } >> sub EOB { '\z' } > > Are all these considered anonymous sub-routines? No, see `perldoc perlsub`. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Perl Programming -help please

2006-08-22 Thread ravi reddy
Hi Perl lovers, I am a newbee to perl studiying perl manuals since 20 days and started little programing on additions and regexps and so, on... Here i need a suggestion from you guys regarding the mysql database and writing a script on RAW CDRs so that i can make billing on that

Re: need help please

2005-04-24 Thread Keith Worthington
[EMAIL PROTECTED] wrote: Hi My program is to send data using an online form. I have the web page for the form. But the web page does not receive the data from the cgi file. I check my work in DOS. When I type perl -c bonus.cgi I get a message tell me syntax ok. But when I check with : per

RE: need help please

2005-04-24 Thread Charles K. Clarkson
[EMAIL PROTECTED] wrote: : I have the web page for the form. But the web page does not : receive the data from the cgi file. : I check my work in DOS. When I type perl -c bonus.cgi : I get a message tell me syntax ok. : But when I check with : perl -w bonus.cgi I ge

parsing script help please

2012-05-31 Thread nathalie
Hi I have this format of file: (see attached example) 1 3206102-3207048 3411782-3411981 3660632-3661428 2 4481796-4482748 4483180-4483486 and I would like to change it to this 1 3206102-3207048 1 3411782-3411981 1 3660632-3661428 2 4481796-4482748 2 44

Re: PERL module: Help please!

2001-06-08 Thread Shawn
My appologies for the bad grammer... ;) On 06/08, Shawn rearranged the electrons to read: > I will start by saying this is largely a learning excersize. I want to > get to the point where I can write a PERL module using some C code in > the backend. I would be greatful as hell for any help on thi

Re: PERL module: Help please!

2001-06-08 Thread iansmith
On Fri, 8 Jun 2001, Shawn wrote: > I will start by saying this is largely a learning excersize. I want to > get to the point where I can write a PERL module using some C code in > the backend. I would be greatful as hell for any help on this! You want the Inline::C module! This lets you do some

RE: Help please (any one)

2001-06-22 Thread Govinderjit Dhinsa
> Hello everyone, I finally got my perl program running (below). What I had > to do was get certain 'data types' (fields) from a input file and out put > to a new file. > My question was; > How do I put a condition on the program, as I only want data from the > input files, which at 'field 15' h

RE: Help please (any one)

2001-06-22 Thread Dave Neill
From: Govinderjit Dhinsa <[EMAIL PROTECTED]> > My question was; > How do I put a condition on the program, as I only want data from the > input files, which at 'field 15' has a 'M' and some other fileds that I > need(as marked on example data)! If you mean by "field 15" the fifteenth elem

RE: Help please (any one)

2001-06-25 Thread Govinderjit Dhinsa
Ur Help is Highly APPRECIATED > From: Dave Neill [SMTP:[EMAIL PROTECTED]] > > If you mean by "field 15" the fifteenth element in your array, try: > > > while($line=){ > > > chomp $line; > > > @fields=split "\t",$line; > *if ($fields[14] =~ /M/) {*

Re: Help please (any one)

2001-06-25 Thread Me
> 1. If we are after field 15, how comes you used field 14 in your > answer please! *if ($fields[14] =~ /M/)*** The Nth element of an array is offset N-1. So $foo[0] is the first element, $foo[1] is the second and so on. This is a common practice in computing la

Re: Help please (any one)

2001-06-25 Thread Jos Boumans
Hey, you might want to concider reading up on some tutorials here: http://www.sharemation.com/~perl/tut both a regexp as a perldata tutorial are on the site along with a few more hth, Jos Boumans > > 1. If we are after field 15, how comes you used field 14 in your > > answer please! **

UNIX Perl installation - Help Please

2003-02-02 Thread M A Ponnambalam
Hi All, I am facing some strange problem with Perl installation in UNIX. I downloaded perl sources from CPAN and then i compiled the sources in /var/tmp . Now the perl is working in /var/tmp. At that time when i try to copy those binaries into different directory like /tools/opt/ns , it

LISTS OF LISTS - Help please!!

2002-08-27 Thread Leon, Yanet I,,DMDCWEST
I have an array which contains the entries below - the output was generated with the following loop: for $r ( 0 .. $#allfilesystems ) { for $c ( 0 .. $#{ $allfilesystems[$r] } ) { print "elt $r $c is $allfilesy

Re: A little help please?

2004-01-30 Thread wolf blaum
For Quality purpouses, Joel 's mail on Saturday 31 January 2004 00:26 may have been monitored or recorded as: Hi, > I'm interested in learning to program perl, and I just got ActivePerl for > Windows. I am running XP and have a few questions. First off, how do I run > the interpreter under Wind

RE: a little help please?

2004-01-31 Thread Joel
What I meant about the command prompt was "Are all the command prompts the same? Also, could running the Activeperl software damage my system at all since it is using a command prompt? Thanks, Joel > > Also, when I opened perl, it looked like the command prompt. Is the command > > prompt acces

RE: a little help please?

2004-01-31 Thread John McKown
On Sat, 31 Jan 2004, Joel wrote: > > What I meant about the command prompt was "Are all the command prompts the > same? Also, could running the Activeperl software damage my system at all > since it is using a command prompt? > > Thanks, > > Joel Since Perl itself is very powerful, then a "Per

Re: A little help please?

2004-01-31 Thread R. Joseph Newton
Joel wrote: > I'm interested in learning to program perl, and I just got ActivePerl for Windows. I > am running XP and have a few questions. First off, how do I run the interpreter > under Windows, preferably without the XP command prompt? Spend lots of money somewhere on a fancy wrapper, whic

Re: a little help please?

2004-01-31 Thread Robin Sheat
On Sat, Jan 31, 2004 at 08:51:00AM -0500, Joel wrote: > What I meant about the command prompt was "Are all the command prompts the > same? Also, could running the Activeperl software damage my system at all > since it is using a command prompt? Hmm, it looks like you have been told the whole 'the c

Help please. What is missing?

2003-09-04 Thread mdaily
Can someone please explain why this while (1) { my $item = ; chomp $item; last unless $item; $inventory{1c $item}++; } Gets Bare word found where operator expected Syntax error line 13 near 1c thanks Madison Daily Weldon, Williams & Lick, Inc. (479

Re: PERL - JAVASCRIPT Help please

2002-02-19 Thread Johnathan Kupferer
This really isn't a perl question. Write out your javascript in a simple HTML file and see if that works. If it does then port write the perl code to output that HTML. This isn't the forum for this but... When you call nwin.document.write() you should be passing HTML, not just any old stri

Code clean up help ---- PLEASE

2002-01-11 Thread Yacketta, Ronald
Folks, I have received a ton of useful info from the list.. a great deal of it of late has gone to help me with my current project to automate (somewhat) a testing procedure. I have finally made my way to the final stage of the script.. execution of the test.. I have the following (be for warned

  1   2   >