my in the perl syntax

2004-02-06 Thread Harshal Borade
Well I am very new to Perl. I have read Oreily's Camel book, but haven't found any thing about my that is used in any of the code. e.g my $var What is my supposed to be over here? Yahoo! India Mobile: Download the latest

Bouncing mails

2004-02-06 Thread Owen
Al Kaibala DO YOU READ THIS? List members, As administrator of the Linux SIG List, I am getting bounces for mail addressed to [EMAIL PROTECTED] I have sent Al a e-mail previously, but no response. If you look at the headers below, it appears to be coming from ta-1-28 which is Al's IP addres

Re: Bouncing mails

2004-02-06 Thread Owen
On Fri, 6 Feb 2004 18:59:13 +1100 Owen <[EMAIL PROTECTED]> wrote: > > > Al Kaibala DO YOU READ THIS? > > List members, My apologies, senility setting in. -- Owen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <

RE: Remote script execution

2004-02-06 Thread Angel de Vicente
Hi there, > > Hello Friends, > > > > I would be really grateful if someone could help me out with this. > > > > I want to write a script that when executed will get lots of > > details from 10 > > different Unix(AIX) and Windows(XP) boxes and generate a report. > Sorry if this has alr

Re: (U) What are the best Perl books out there ... More than 1 is fin e ... list as many as you like

2004-02-06 Thread Harvey Kelly
Hello, If you've no experience whatsoever, then Beginning Perl for Bioinformatics is very helpful - then move on to Learning Perl I guess. It assumes no prior knowledge, and although its focus is on Biology, it's all just data isn't it? Cheers, Harvey --- >On 2/4/2004 10:17

Perl, Tk, and RPMS

2004-02-06 Thread Gary Stainburn
Hi folks. I run a number of RH7.3 boxes which I keep up to date using Redhat's RPMS. I've just bought Mastering Perl/Tk and need to install Tk from CPAN. However, when I try to install Tk it says that I need to have at least Perl v5.7, but the latest RH RPMS are 5.6.1. Is it possible to instal

Search Replace in multiple files

2004-02-06 Thread chetak.sasalu
Hi, I have to search and replace 'foo' to 'bar' in all the files in a directory(has subdirectories). The files are about 40k in size. On the command line I would do it as, find ./mydir/ -type f -print | xargs perl -pi -e 's/foo/bar/' No backup of the original files required.I am brave. What i

Re: Sending mails

2004-02-06 Thread nilanjana
I tried using this code but it's giving error. Can you explain in details pls as this is my first perl script & don't know much of programming. Thanks Nilanjana --- > On Wed, 4 Feb 2004 14:07:43 +0530, [EMAIL PROTECTED] (Nilanjana > Bhattacharya) wrote: > > >Hello everybody, > > >

Re: my in the perl syntax

2004-02-06 Thread Jan Eden
There is definitely an explanation in the Camel (Chapter 4.8.1, Scoped variable declarations). my $var declares a lexical variable, i.e. a variable with limited scope (where the scope is limited by an enclosing block, such as a subroutine, a conditional loop etc.). HTH, Jan Harshal Borade wro

Re: (U) What are the best Perl books out there ... More than 1 is fin e ... list as many as you like

2004-02-06 Thread km
Hi all, sorry i think its the otherway around. first one should know the technical basics of Perl language then dive into books like 'Beginning Perl for Bioinformatics'. As far as i have seen people who have learnt Perl language initially and then read books like those fared far better than peo

Re: (U) What are the best Perl books out there ... More than 1 is fin e ... list as many as you like

2004-02-06 Thread km
Hi all, >learning about basics like scalar variables and > arrays etc. > first is a little daunting. With the Bioinfo. book I was writing > programs (well, If u are a novice to programming, well it might be a bit difficult initially - i agree. > doing the exercises) straight away. Kinda like w

Re: Search Replace in multiple files

2004-02-06 Thread Jan Eden
[EMAIL PROTECTED] wrote: >Hi, > >I have to search and replace 'foo' to 'bar' in all the files in a >directory(has subdirectories). The files are about 40k in size. > >What is the most efficient way to implement this inside a perl >program ? There are about 30 files to be processed. I went through

Re: my in the perl syntax

2004-02-06 Thread Robert
Harshal borade wrote: Well I am very new to Perl. I have read Oreily's Camel book, but haven't found any thing about my that is used in any of the code. e.g my $var What is my supposed to be over here? I am new as well and by lurking in the groups I can tell you with great certainty to use "

Re: (U) What are the best Perl books out there ... More than 1 is fin e ... list as many as you like

2004-02-06 Thread Harvey Kelly
Hello all, Yeah that does make sense, but my experience (and I'm only speaking for myself here) is that learning about basics like scalar variables and arrays etc. first is a little daunting. With the Bioinfo. book I was writing programs (well, doing the exercises) straight away. Kinda like w

Re: Search Replace in multiple files

2004-02-06 Thread Jan Eden
Please disregard my post, I mixed up the magic <> and the less magic . -- These are my principles and if you don't like them... well, I have others. - Groucho Marx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Search Replace in multiple files

2004-02-06 Thread Rob Dixon
Chetak Sasalu wrote: > > I have to search and replace 'foo' to 'bar' in all the files in a > directory(has subdirectories). > The files are about 40k in size. > > On the command line I would do it as, > find ./mydir/ -type f -print | xargs perl -pi -e 's/foo/bar/' > > No backup of the original fil

Re: Search Replace in multiple files

2004-02-06 Thread Randy W. Sims
On 02/06/04 07:45, [EMAIL PROTECTED] wrote: PS: I see this term 'foo' 'bar' in many programming books, what is the etymology of this? It is derived from a technical acronym FUBAR - [EMAIL PROTECTED] Up Beyond All Repair (or Recognition). 'foo', 'bar' is just a play on the original acronym - A jo

Re: my in the perl syntax

2004-02-06 Thread Gabor Urban
From: Robert <[EMAIL PROTECTED]> Subject: Re: my in the perl syntax Date: Fri, 06 Feb 2004 07:57:39 -0500 Hi the best to understand is like in the next code snippet: sub SubA { my $var1 ; } In this function the var $var will be local and so can not be accessed from outside. (Or if you h

Re: my in the perl syntax

2004-02-06 Thread Wiggins d Anconia
> Well I am very new to Perl. I have read Oreily's > Camel book, but haven't found any thing about > my that is used in any of the code. > > e.g > my $var > > What is my supposed to be over here? > > Since the Camel is a reference more than a tutorial and because it is already a pretty thick

RE: Search Replace in multiple files

2004-02-06 Thread Charles K. Clarkson
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: : : I went through perldoc perlrun and saw the code. : : I thought it as a criminal waste of time to try and : modify that code for my purpose, when I can ask you : folks :-) Perhaps I am misunderstanding you, but that sounds to me like you would

RE: Search Replace in multiple files

2004-02-06 Thread Ned Cunningham
Wouldn't it be better to not waste your time with this kind of response??? Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROTECTED] -Original Message- From: Charles K. C

Script Kiddie issues

2004-02-06 Thread LoneWolf
Frankly I use the apache filter to check for people looking for cmd.exe or root.exe or any one of a dozen files, and instead of my log files filling with their looks they are sent an iframe html page with a virus built in that formats their windows system. If they aren't running windows then it it

Net::SMTP Problem - Bad Protocol

2004-02-06 Thread Nigel Peck - MIS Web Design
I have a problem with Net::SMTP running a Win32 server (groan). It works fine from the command line but when I try it through cgi I get: Net::SMTP: Bad protocol 'tcp' at... All help greatly appreciated :) Cheers, Nigel Managing Director MIS Web Design http://www.miswebdesign.com/ Administrato

Script to parse files

2004-02-06 Thread LoneWolf
I've been working with this since wolf and jeff and john sent me some stuff, I think I actually based everything on wolf's code excerpts. I'm sure my final code is going to not be perfect, but at least I have the piece of mind of knowing that I can get this thing some better then it was. I'm stil

Re: * CSV to HTML * please send cgi-beginner listserv address

2004-02-06 Thread Gregg O'Donnell
Thanks to all who helped - please give me the beginners cgi listserv email Thanks, Gregg - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online

Re: Sending mails

2004-02-06 Thread u235sentinel
I'm still learning myself and haven't tried sending email's from perl scripts (yet). I did however notice one typo which might help you grab more info on what's going on. Check the below in your code. Change 'use warnigs' to 'use warnings' Hopefully it will help give you a bit more to go on.

How to Implement a BNF syntax in perl?

2004-02-06 Thread Balaji Thoguluva
Hi, I have a long BNF (Backus-naur form) for parsing a protocol message. Suppose I want to implement a BNF like this Response = Status-line *(message-header) CRLF [Message-body] status-Line = SIP-Version SP Status-Code SP Reason-Ph

skipping lines of input from another program...

2004-02-06 Thread West, William M
the following is my script that i am working on- it fails to do quite the right thing.. qouting from one of the comments below:: "#skip_lines() is supposed to "skip" some lines of output. #The problem is, that it DOESN'T even though the debug print statement # "print "trash is $trash \n

Re: Script to parse files

2004-02-06 Thread wolf blaum
For Quality purpouses, LoneWolf 's mail on Friday 06 February 2004 16:57 may have been monitored or recorded as: > I've been working with this since wolf and jeff and john sent me some > stuff, I think I actually based everything on wolf's code excerpts. I'm > sure my final code is going to not b

Reg. string matching using reg-exp

2004-02-06 Thread Balaji Thoguluva
Hi, I am a novice to perl programming. When I execute the following code, I get always "No Match". I guess my reg-exp is correct. I also tried changing $line= "INVITE sip:[EMAIL PROTECTED] SIP/2.0"; to have double quotes and a backslash char before @ symbol. Even then it gives me No Match.

RE: Reg. string matching using reg-exp

2004-02-06 Thread Tim Johnson
It looks like there is no '\r\n' at the end of $line. -Original Message- From: Balaji Thoguluva [mailto:[EMAIL PROTECTED] Sent: Friday, February 06, 2004 11:45 AM To: [EMAIL PROTECTED] Subject: Reg. string matching using reg-exp #!/usr/bin/perl -w my $line= 'INVITE sip:[EMAIL PR

Re: Reg. string matching using reg-exp

2004-02-06 Thread wolf blaum
For Quality purpouses, Balaji Thoguluva 's mail on Friday 06 February 2004 20:44 may have been monitored or recorded as: > Hi, > I am a novice to perl programming. When I execute the following code, > I get always "No Match". I guess my reg-exp is correct. I also tried > changing $line= "INVI

RE: Reg. string matching using reg-exp

2004-02-06 Thread Tim Johnson
Use the 's' option at the end of your regex after the closing '/'. $var =~ /match\nsomething\nelse/s; read 'perldoc perlre' for more about regexes. Also, please reply to the list next time, because I might not be at my desk or able to reply, and someone else probably will. _ From:

Re: Script to parse files

2004-02-06 Thread wolf blaum
For Quality purpouses, wolf blaum 's mail on Friday 06 February 2004 20:15 may have been monitored or recorded as: > easy: (notice: thats the same script as priviously but has the parse in a > sub:) > > ---snip--- > #!/usr/bin/perl > > use strict; > use warnings; > my (@fields, $lng); ... and t

RE: Reg. string matching using reg-exp

2004-02-06 Thread Jeff 'japhy' Pinyan
On Feb 6, Balaji Thoguluva said: >Thanks Tim Johnson. I removed the /r/n from the reg-ex and it works. I >have another question. How to assign a multiline string or string having >many lines(strings having \n) to a $string-variable?. In C, there is a >"\" operator. You don't need to do anything s

Re: Reg. string matching using reg-exp

2004-02-06 Thread Rob Dixon
Balaji thoguluva wrote: > I am a novice to perl programming. When I execute the following code, I get > always "No Match". I guess my reg-exp is correct. I also tried changing $line= "INVITE sip:[EMAIL PROTECTED] SIP/2.0"; to have double quotes and a backslash char before @ symbol. Even the

Re: Reg. string matching using reg-exp

2004-02-06 Thread Rob Dixon
Jeff 'Japhy' Pinyan wrote: > > On Feb 6, Balaji Thoguluva said: > > >Thanks Tim Johnson. I removed the /r/n from the reg-ex and it works. I > >have another question. How to assign a multiline string or string having > >many lines(strings having \n) to a $string-variable?. In C, there is a > >"\" op

RE: skipping lines of input from another program...

2004-02-06 Thread West, William M
in the post that i am now replying to, i said that i couldn't get the program to skip lines as it parsed through the output of another program. i have "solved" the problem- but i do not know WHY this works the way it does. this worked great :) (thanks to drieux) - in fact, it would let

RE: How to rearrange columns

2004-02-06 Thread Shiping Wang
At 03:31 PM 2/5/2004 -0800, david wrote: Shiping Wang wrote: > Hi David, thanks for your response. > > My concern is that if the data has hundreds columns (which the order > information I can get from another array or file) need to be rearranged, > how can I do it. > > Here is my test program, it

Re: skipping lines of input from another program...

2004-02-06 Thread Rob Dixon
William M West wrote: > > in the post that i am now replying to, i said that i couldn't get > the program to skip lines as it parsed through the output of another > program. > > i have "solved" the problem- but i do not know WHY this works the > way it does. > > > > > > this worked great :) (than

Shortcuts and ability to force to server

2004-02-06 Thread Wagner, David --- Senior Programmer Analyst --- WGO
My Sys Admin have shortcuts ( 16 bit ) which they have set their target or cmd pointing to a server location. Is there anyway via Perl or ??? to force the processing to be done on the server verses workstation which invoked the shortcut? Make any sense? Any questions and/

RE: How to rearrange columns

2004-02-06 Thread david
Shiping Wang wrote: [snip] >> >>#-- >>#-- header >>#-- >>print join("\t",(split /\s+/,$line)[EMAIL PROTECTED]@c}]),"\n"; # Although I can >>guess >>this piece of code do the sorting then print out, but don't quite >>understand how it works, especially [EMAIL PROTECTED]@c}]. no sorting is happen

Re: Reg. string matching using reg-exp

2004-02-06 Thread david
Rob Dixon wrote: > In C, newlines have to be introduced explicitly as "\n". A literal > newline character (the end of a source record) has to be escaped to > make it 'vanish', otherwise it should throw a compilation error. > > In Perl: > > my $string = "One > Two > Three > "; > > In C: > >

Re: my in the perl syntax

2004-02-06 Thread John W. Krahn
Harshal borade wrote: > > Well I am very new to Perl. I have read Oreily's > Camel book, but haven't found any thing about > my that is used in any of the code. > > e.g > my $var > > What is my supposed to be over here? Perhaps this article will help you understand: http://perl.plover.com/FAQs

Re: Search Replace in multiple files

2004-02-06 Thread John W. Krahn
Chetak Sasalu wrote: > > Hi, Hello, > I have to search and replace 'foo' to 'bar' in all the files in a > directory(has subdirectories). > The files are about 40k in size. > > On the command line I would do it as, > find ./mydir/ -type f -print | xargs perl -pi -e 's/foo/bar/' > > No backup o

Re: How to Implement a BNF syntax in perl?

2004-02-06 Thread Randy W. Sims
On 02/06/04 12:49, Balaji Thoguluva wrote: Hi, I have a long BNF (Backus-naur form) for parsing a protocol message. Suppose I want to implement a BNF like this Response = Status-line *(message-header) CRLF [Message-body] status-Line

Re: Search Replace in multiple files

2004-02-06 Thread R. Joseph Newton
Ned Cunningham wrote: > Wouldn't it be better to not waste your time with this kind of response??? > > Ned Cunningham > POS Systems Development Hi Ned, I'd say that it depends on whether you see the OP as a potential programmer. If so, then no, it would not be better. If the OP takes a hint an

Re: Module for Country/Country Codes Lists

2004-02-06 Thread Shlomi Fish
On Wed, 4 Feb 2004, Randy W. Sims wrote: > On 2/4/2004 11:36 AM, Shlomi Fish wrote: > > > Hi! > > > > My name is Shlomi Fish and I am a co-developer of the WWW::Form module: > > > > http://search.cpan.org/~bschmau/WWW-Form-1.13/ > > > > Benjamin Schmaus (WWW::Form's main developer) and I decided i