bh_perl has asked for the wisdom of the Perl Monks concerning the following question:
Could somebody guide me, how could i open the input files and split it by line ?
As example, This is the input file (sample.txt):-
#---------------------------------------- # Note: # Input format: <Name>:<value> #---------------------------------------- name:00 00 0D mobile:123455 name:00 00 30 mobile:6575758
Then, how could i open the files and read based on the new line separator (/\n/) ?
Edit: g0n - removed pre tags. Formatting.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to split based on new line or others ?
by ikegami (Patriarch) on Nov 08, 2006 at 06:54 UTC | |
|
Re: how to split based on new line or others ?
by bobf (Monsignor) on Nov 08, 2006 at 07:11 UTC | |
|
Re: how to split based on new line or others ?
by prasadbabu (Prior) on Nov 08, 2006 at 06:54 UTC | |
by bh_perl (Monk) on Nov 08, 2006 at 07:13 UTC | |
by prasadbabu (Prior) on Nov 08, 2006 at 07:29 UTC | |
by bh_perl (Monk) on Nov 08, 2006 at 07:41 UTC | |
by prasadbabu (Prior) on Nov 08, 2006 at 09:44 UTC | |
by swampyankee (Parson) on Nov 08, 2006 at 17:42 UTC | |
|
Re: how to split based on new line or others ?
by smokemachine (Hermit) on Nov 08, 2006 at 11:37 UTC |