Re: [Perl-unix-users] length of a string

2002-04-04 Thread Nagesh Reddy
I think u can use the length function. my $len=length($name); - Original Message - From: "Johnno" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 04, 2002 5:39 PM Subject: [Perl-unix-users] length of a string > How do i find out how long (many chars) a string has..

Re: [Perl-unix-users] Removing elements from an array

2002-04-04 Thread $Bill Luebkert
Walter Usyk wrote: > I'm a Perl newbie and would like to know what is the most effecient way > to remove a particular element from an array. I would think splice would be the easiest. -- ,-/- __ _ _ $Bill Luebkert ICQ=14439852 (_/ / )// // DBE Collectibles

[Perl-unix-users] length of a string

2002-04-04 Thread Johnno
How do i find out how long (many chars) a string has.. ie.. $name="valentine is here"; Many thanks, Johnno ___ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

[Perl-unix-users] RE: Create three different files based on search string in the input file

2002-04-04 Thread Peter Eisengrein
Title: RE: [Perl-unix-users] search for a particular string in a file A couple questions:   - will the "small" file always have the same number of lines? - is there are certain line number on which the match may appear? Or could it be anywhere other than header/footer? - is there a chance tha

[Perl-unix-users] Removing elements from an array

2002-04-04 Thread Walter Usyk
I'm a Perl newbie and would like to know what is the most effecient way to remove a particular element from an array. Thanks for your help -- ___ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/

[Perl-unix-users] RE: Create three different files based on search string in the input file

2002-04-04 Thread Peter Eisengrein
Title: RE: Create three different files based on search string in the i nput file Fairly easy then. One last question to consider... Will the header/footer always be 2 lines (or some other static number)? If not then you may have to use pattern matching for those too (or ignore any lines that

[Perl-unix-users] RE: Create three different files based on search string in the input file

2002-04-04 Thread AITHA, BHEEMSEN \(SBCSI\)
Title: RE: [Perl-unix-users] search for a particular string in a file Here are the answers to the questions.   will the "small" file always have the same number of lines?  No. is there are certain line number on which the match may appear?  No certain line number. Or could it be anywhere o