yes that is true, [5,6,7] need to be typed otherwise all entries are not
accounted for.
Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams
614-566-4145
"JupiterHost.Net"
<[EMAIL PROTECTED]
st.net> To
[email protected]
04/27/2005 11:13 cc
AM
Subject
Re: REGEXP removing - il- - -b-f
and - il- - - - f
> If all you want is the last column, this is a really long way to go about
it.
>
> while (<V4>) {
> print (split)[7];
> print "\n";
> }
I think that won't work due to some rows formatted like so:
2005/01/20 15:39 17 2% -il-o-b- - - - - sg F01000
unless that was typo?
In that case "7" isn't always the index of the last item in the list
from split.
while (<V4>) {
my @tmp = split;
print "$tmp[ $#tmp ]\n";
}
> This should be enough to get you started. On the whole, though, I'd
> seriously recommend that you pick up a copy of a good intro perl book
> (_Learning Perl_ springs to mind), and read the FAQ for this group on
> how to identify (bad) examples of Perl 4 code, which it seems you've
> been looking at.
I second that!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>