Re: print a selection of a file

2008-01-09 Thread Rob Dixon
[EMAIL PROTECTED] wrote: Hello, I try to print (get) a specific text selection from a text file, but I don't know how to do it: What I try todo is to open a file search a string and print the follow lines from that string until he found a white line. then he need to stop. so c

Re: print a selection of a file

2008-01-09 Thread Paul Lalli
On Jan 9, 4:36 am, [EMAIL PROTECTED] (Jonay Herrera) wrote: > Hello, > > I try  to  print (get)  a specific text selection from  a  text file, > but  I don't know  how to  do  it: > What I try  todo  is  to open a  file search  a string and  print > the  follow lines from that  string until he foun

Re: print a selection of a file

2008-01-09 Thread Martin Barth
> #!/opt/perl/bin/perl -w > use strict; > > #variable > > my @horcm_file; > > > sub readdata{ > open(HORCM, "/etc/horcm10.conf") || die ("File error"); > @horcm_file = ; > chomp(@horcm_file); > close(HORCM); > return(@horcm_file); > } > > my @pipo=readdata(); > > foreach (@pipo){ >

print a selection of a file

2008-01-09 Thread jonay . herrera
Hello, I try to print (get) a specific text selection from a text file, but I don't know how to do it: What I try todo is to open a file search a string and print the follow lines from that string until he found a white line. then he need to stop. so can i get the lines (stri