A
Andy
Hi,
I'm new to perl but need to write a script that takes a file and
formats lines.
The file has to 2 fields that are tab separated and each field is made
up of items separated by some type of linefeed character. The end of
the second field is identified by another type of linefeed character.
When I view the file in VIM the second linefeed shows as a ^M so there
must be a way of identifying these separately.
I have tried searching for \r \n %CR %LF $VT $FF but nothing seems to
give the required effect.
I need to run the script on a PC.
Please can you offer some advice or possible places to look.
Thanks
Andy
I'm new to perl but need to write a script that takes a file and
formats lines.
The file has to 2 fields that are tab separated and each field is made
up of items separated by some type of linefeed character. The end of
the second field is identified by another type of linefeed character.
When I view the file in VIM the second linefeed shows as a ^M so there
must be a way of identifying these separately.
I have tried searching for \r \n %CR %LF $VT $FF but nothing seems to
give the required effect.
I need to run the script on a PC.
Please can you offer some advice or possible places to look.
Thanks
Andy