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..
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
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
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
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/
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
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