Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Help Please: msg#00314

lang.perl.beginners

Subject: Re: Help Please

RE: Help PleaseYep it reads each line in an array location i.e. in array
location 0 it reads the first line, in array location 1 the second line etc...

The complete code is:

$file = "your text file name";
open (FILE, "$file");
@contents = <FILE>;
close (FILE);

This is all the code, feel free to use it. This means that $contents[0] = line 1
$contents[1] = line 2
$contents[2] = line 3
----- Original Message -----
From: Ron Powell
To: 'Josef E. Galea'
Sent: Tuesday, April 30, 2002 11:09 PM
Subject: RE: Help Please


Does the project you are working on require you to read more than one line
from the file in question? I'm curious to see if your code, as posted, will
read more than one line... If so, I can eliminate a _ton_ of while loops :)

Thanks,
Ron

> -----Original Message-----
> From: Josef E. Galea [mailto:josefg@xxxxxxxxxxxx]
> Sent: Tuesday, April 30, 2002 4:16 PM
> To: beginners@xxxxxxxx
> Subject: Re: Help Please
>
>
> Ok guys, thank you all for your suggestions. I solved the
> problem. It consisted of a bug with the text editor that
> saved the file as test.txt.txt. Rather lame actually. Thank you all
>
> Josef
>

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe