#77633 - 2001-04-19 04:06 PM
Re: Array elements after split()
|
Anonymous
Anonymous
Unregistered
|
Shawn, Yes it is working, but in my real script $line="aaa bbb cc dddd" so the field separator is variable, and with my previous experience with awk() which is a a Unix command, i was expecting that split() will remove the leading blanks of the fields. So with awk() I'll get $1=aaa $2=bbb $3=cc $4=dddd but split will give 15 Fields, most of them " ". Anyway Thanks for the prompt answer, and it is definetly a suggestion.Salah.
|
Top
|
|
|
|
Moderator: ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 496 anonymous users online.
|
|
|