Re: incorrect output

2006-09-26 Thread John W. Krahn
Geetha Weerasooriya wrote: > Hi dear all, Hello, > I have written a script which reads the data lines and when a blank line > is found all the data up to the previous line is considered as a one set > and new set is started after the next line. Then I subtracted from one > element of the last lin

Re: incorrect output

2006-09-26 Thread D. Bolliger
Geetha Weerasooriya am Mittwoch, 27. September 2006 05:58: > Hi dear all, Hi Geetha We (at least I) have to guess the things you don't describe. And there is no test data to reproduce the wrong output. > I have written a script which reads the data lines and when a blank line > is found all the

RE: incorrect output

2006-09-26 Thread Charles K. Clarkson
Geetha Weerasooriya wrote: : When I turn on the " use warnings " it gives the warning ' : Use of uninitialized value in numeric ne(!=) at . : line 37, line.. : : Here line 37 is" if (@line != ()) {" In this case, perl will use the scalar value of @line, which is a count of its elemen

incorrect output

2006-09-26 Thread Geetha Weerasooriya
Hi dear all, I have written a script which reads the data lines and when a blank line is found all the data up to the previous line is considered as a one set and new set is started after the next line. Then I subtracted from one element of the last line of that set the same element of the first

Re: Standard input errors

2006-09-26 Thread Owen Cook
On Tue, 26 Sep 2006, elite elite wrote: > > > Here are my error: > > > [EMAIL PROTECTED] ~]$ perl hello.pl > String found where operator expected at hello.pl line > 15, near "print "" > (Might be a runaway multi-line "" string starting on > line 11) > (Missing semicolon on previous

Re: Standard input errors

2006-09-26 Thread Marc Sacks
elite elite wrote: Here are my error: [EMAIL PROTECTED] ~]$ perl hello.pl String found where operator expected at hello.pl line 15, near "print "" (Might be a runaway multi-line "" string starting on line 11) (Missing semicolon on previous line?) Backslash found where operator expected

Re: Standard input errors

2006-09-26 Thread D. Bolliger
elite elite am Dienstag, 26. September 2006 20:16: > Here are my error: Instead of the line use warnings; you can use use diagnostics; which gives you a more verbose explanation of errors! The documentation for both you can get by (from the cmdline prompt): perldoc warnings; perld

Re: Standard input errors

2006-09-26 Thread Bryan R Harris
And an extra double quote on your "enter your address" line. - B > Here are my error: > > > [EMAIL PROTECTED] ~]$ perl hello.pl > String found where operator expected at hello.pl line > 15, near "print "" > (Might be a runaway multi-line "" string starting on > line 11) > (Missing

Re: Standard input errors

2006-09-26 Thread Bryan R Harris
Missing semicolon after "my $address"? - B > > > Here are my error: > > > [EMAIL PROTECTED] ~]$ perl hello.pl > String found where operator expected at hello.pl line > 15, near "print "" > (Might be a runaway multi-line "" string starting on > line 11) > (Missing semicolon on pre

Standard input errors

2006-09-26 Thread elite elite
Here are my error: [EMAIL PROTECTED] ~]$ perl hello.pl String found where operator expected at hello.pl line 15, near "print "" (Might be a runaway multi-line "" string starting on line 11) (Missing semicolon on previous line?) Backslash found where operator expected at hello.pl line

Re: Standard input Question

2006-09-26 Thread elite elite
My teacher had a lesson 2 only an i thought it was in lesson 2 in the book thanks for the help:) --- Bryan R Harris <[EMAIL PROTECTED]> wrote: > > > >>> If i going to write a script with a standard > input how would it look like?My > >>> perl book don't talk about it. > >> > >> Wh

Re: Standard input Question

2006-09-26 Thread Bryan R Harris
>>> If i going to write a script with a standard input how would it look like?My >>> perl book don't talk about it. >> >> What book? And what part thereof did you read? >> (Besides the cover, that >> is...) > > Learning perl and programming perl book First look up the "diamond" operator ("<>")

Re: Standard input Question

2006-09-26 Thread elite elite
Learning perl and programming perl book --- Jorge Almeida <[EMAIL PROTECTED]> wrote: > On Tue, 26 Sep 2006, elite elite wrote: > > > > > > > If i going to write a script with a standard input > how > > would it look like?My perl book don't talk about > it. > > > > > > Craig > > > Wha

WSDL issues

2006-09-26 Thread Michael Gale
Hello, I have trying to use SOAP::Lite with SOAP::WSDL but an running into an issue with the WSDL file I think. If I use SOAP::Lite alone, when I try to call a method, no matter how many parameters I pass it, only the last one is sent to the server ? When I use SOAL::Lite with SOAP::WSDL it

RE: Need help with repeating match

2006-09-26 Thread Zembower, Kevin
Rob, thanks so much for helping me with this perl task. I'm still going over your solution character-by-character to fully understand it. I really appreciate your efforts in working it out. -Kevin -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Monday, September 25, 20

backreference in regexp

2006-09-26 Thread chen li
Hi all, I see some codes as following my $regexp= "(([gatc]{3})\\2{3,})"; my $string=~/$regexp/; What is the meaning of {3,} of in \2{3,} ? I know \2 is a backreference here but not sure {3,}. I check the camel book and some perldoc but I can't find answer. Thanks, Li

Re: perl scalar

2006-09-26 Thread Marc Sacks
I guess I didn't quite use the original code. I made the mistake of typing what it should have been instead of what it was: #!/usr/bin/perl $street="Wright"; print "$street\n"; $street="Washington"; It's amazing what a dollar sign and a change of case can do. -Marc Hello Marc Odd. I ju

Re: backreference in regexp

2006-09-26 Thread D. Bolliger
chen li am Dienstag, 26. September 2006 15:52: > Hi all, Hi chen > I see some codes as following > > my $regexp= "(([gatc]{3})\\2{3,})"; Single quotes would make the double slash unnecessary: my $regexp= '(([gatc]{3})\2{3,})'; [...] > What is the meaning of {3,} of in \2{3,} ? > > I know \2 i

Re: perl scalar

2006-09-26 Thread D. Bolliger
[rearranged to bottom posting style] Marc Sacks am Dienstag, 26. September 2006 14:25: > D. Bolliger wrote: > >elite elite am Montag, 25. September 2006 22:27: > >>I not sure what i doing wroung. > > > >I'm not sure either :-) > > > >>Street="Wright"; > > > >This is wrong syntax; "Street" is not a

Re: Package clashes

2006-09-26 Thread Beginner
A quick update on this. A grep of the file show: $ifdoff = _process_ifds($info,$fh,$page,0,$byteorder,$ifdoff); sub _process_ifds { process_ifds($info,$fh,$page,$tagsseen,$byteorder,$value_offset); Notice the missing underscore on the last call. Once it was added the package worked fine

Re: Standard input Question

2006-09-26 Thread Jorge Almeida
On Tue, 26 Sep 2006, elite elite wrote: If i going to write a script with a standard input how would it look like?My perl book don't talk about it. Craig What book? And what part thereof did you read? (Besides the cover, that is...) -- Jorge Almeida -- To unsubscribe, e-mail: [EMAIL PROTE

RE: backreference in regexp

2006-09-26 Thread Thomas Bätzler
chen li <[EMAIL PROTECTED]> asekd: > I see some codes as following > > my $regexp= "(([gatc]{3})\\2{3,})"; > > my $string=~/$regexp/; > > What is the meaning of {3,} of in \2{3,} ? The previous element is repeated thrice or more often. The general syntax is {n,m} where the previous element is

Re: perl scalar

2006-09-26 Thread Marc Sacks
Odd. I just tried the same code snippet and it worked fine. You might try putting a space before and after your "=" signs. I don't know if that makes a difference, but it won't hurt. Marc Sacks [EMAIL PROTECTED] D. Bolliger wrote: elite elite am Montag, 25. September 2006 22:27: I not s

Re: Matching a sub pattern and processing results

2006-09-26 Thread Rob Dixon
David Gilden wrote: > Dear Perl Gurus, Still struggling here... The problem is the data in the middle of the match is on multiple lines. Please reply directly and CC the list. Not sure where you're headed David. There were three posts, all of which solved your problem as I understand it. What

Standard input Question

2006-09-26 Thread elite elite
If i going to write a script with a standard input how would it look like?My perl book don't talk about it. Craig __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe, e-mai

Package clashes

2006-09-26 Thread Beginner
Hi, I am not sure if have all the facts assembled but it looks like I have a clash between two localy installed packages; Image::Info and Image::MetaData. I only noticed when I tried to use Image::Info to read some data on a TIFF file. I got the error: Undefined subroutine &Image::Info::TIFF:

Re: Standard input Question

2006-09-26 Thread Mumia W.
On 09/26/2006 07:10 AM, elite elite wrote: If i going to write a script with a standard input how would it look like?My perl book don't talk about it. Craig If the perl documentation has been properly installed onto your computer, you should be able to open a command prompt and type "perld

RE: Proper output

2006-09-26 Thread Sayed, Irfan \(Irfan\)
Hi, I apologize for my mistake. In future I will take care of sending all the messages in proper fashion and in descriptive manner. Regards Irfan. -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 3:14 AM To: beginners@perl.org Subject: Re:

RE: backreference in regexp

2006-09-26 Thread chen li
--- Thomas Bätzler <[EMAIL PROTECTED]> wrote: > chen li <[EMAIL PROTECTED]> asekd: > > I see some codes as following > > > > my $regexp= "(([gatc]{3})\\2{3,})"; > > > > my $string=~/$regexp/; > > > > What is the meaning of {3,} of in \2{3,} ? > > The previous element is repeated thrice or m

Re: backreference in regexp

2006-09-26 Thread chen li
> Check perldoc perlre, "Regular Expressions": > > " The following standard quantifiers are > recognized: >[...] >{n}Match exactly n times >{n,} Match at least n times >{n,m} Match at least n but not more than > m times > " > > "\2{3,}"