Re: printing first 40 lines in one string

2004-06-16 Thread DBSMITH
, Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams 614-566-4145 Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> 06/16/2004 12:58 PM Please respond to japhy To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject: Re: printing first 40 lines in

Re: printing first 40 lines in one string

2004-06-16 Thread Jeff 'japhy' Pinyan
On Jun 16, [EMAIL PROTECTED] said: >I have a file that looks like this: > >e4343 >d3434 >34344 >43434 >de434 > >and I am printing the first 40 lines using > >$foo = qw(my/file/with/40+lines); >print substr ( $foo,0,39 ); No, that's printing the first 39 characters of the string $foo. If you have

printing first 40 lines in one string

2004-06-16 Thread DBSMITH
All, was hoping for some advice. :) I have a file that looks like this: e4343 d3434 34344 43434 de434 and I am printing the first 40 lines using $foo = qw(my/file/with/40+lines); print substr ( $foo,0,39 ); but how do I print all of these lines on one line with a space meaning e4343 d34