home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!mcsun!sunic!aun.uninett.no!news.uit.no!stud.cs.uit.no!tomg
- From: tomg@stud.cs.uit.no (Tom Grydeland)
- Subject: Re: Arrays of filehandles
- References: <1992Aug12.230411.20069@unixg.ubc.ca>
- Sender: news@news.uit.no (USENET News System)
- Organization: University of Tromsoe
- Date: Thu, 13 Aug 1992 14:57:58 GMT
- Message-ID: <1992Aug13.145758.14449@news.uit.no>
- Lines: 34
-
- In article <1992Aug12.230411.20069@unixg.ubc.ca>, andy@orchid.bdc.ubc.ca (Andrew Dwelly) writes:
- |>
- [stuff deleted]
- |> # But this bit just falls through as if @filehandle[0] was empty
- |> while (<@filehandle[0]>)
-
- As has been answered on many similar questions on this group, @array[$index]
- is an array slice with one value.
-
- |> I need to get various lumps of data from <@filehandle[$whatever]> in the
- |> rest of the code.
-
- Then refer to it as $filehandle[$whatever]
-
- |> What should I be doing here. Also, what is the difference between an
- |> array @this[$that] and $this[that] ? this has also been troubling
- |> me in the last few days.
-
- The `@' in `@this[$that]' tells perl that you're refering to an array value,
- i.e the array slice with one value, $this[$that].
-
- The first `$' in $this[$that]' tells perl that you're refering to a scalar
- value.
-
- thus: @this[$that] == ($this[$that])
-
-
- |> Andy Dwelly (andy@bcu.ubc.ca)
-
- --
- //Tom Grydeland(tomg@stud.cs.uit.no)._._._._._._._._._._._._._._._._._._._._._
- |A._| . . ._| | |_._._. . ._|_._._._._. ._|_. ._ _._. ._| | . ._|_. | . ._._. |
- | ._|_| |_. | | | | ._._|_. |_._. . |_. | | | ._._| |_._._._| | ._. ._| . . |_|
- |_._._._._|_._._._._._._|_._._._._|_._._._._._._._._._._._._|_._._|_|_._|_|_.B|
-