Well, Sorry if I was not clear enough. I want to read lines from a file and I need to split the line into characters. I know you can use the split function from perl to do this, but I have not space or commas or dots in between. So the file looks like(e.g):
line1 ADCBFSDSSDDFFGTESDFGG line2 BGCDFGYRTEDGHHJJJKKKKL etc I want to know how can I separate this characters as I need to retrieve for example the character number 5 in line 1 and character 45 in line 2 and so on. Cheers, P On 04/09/07, Andrew Curry <[EMAIL PROTECTED]> wrote: > > Just to clarify you have a file which is basically 1 string but you know > every 60 characters is a new set of data? > > -----Original Message----- > From: Pedro Soto [mailto:[EMAIL PROTECTED] > Sent: 04 September 2007 13:29 > To: beginners@perl.org > Subject: spliting > > Hi, > I have a file with lines of 60 characters each. I would like to split > every > line into its 60 characters, but there is not any delimiter between them. > Something like: ABCDEFGHIJK etc. > Is there anyway to do it? > Many thanks in advance, > Cheers, > P. Soto > > > This e-mail is from the PA Group. For more information, see > www.thepagroup.com. > > This e-mail may contain confidential information. Only the addressee is > permitted to read, copy, distribute or otherwise use this email or any > attachments. If you have received it in error, please contact the sender > immediately. Any opinion expressed in this e-mail is personal to the > sender > and may not reflect the opinion of the PA Group. > > Any e-mail reply to this address may be subject to interception or > monitoring for operational reasons or for lawful business practices. > > > > >