home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!fmrco!fmrco!asherman
- From: asherman@laser.fmrco.com (Aaron Sherman)
- Subject: Re: help!
- In-Reply-To: csa@sw.stratus.com's message of 2 Sep 92 01:45:10 GMT
- Message-ID: <ASHERMAN.92Sep2112319@laser.fmrco.com>
- Sender: news@fmrco.uucp
- Reply-To: asherman@fmrco.COM
- Organization: I-Kinetics, 19 Bishop-Allen Dr., Cambridge, MA
- References: <6087@transfer.stratus.com>
- Date: Wed, 2 Sep 1992 16:23:19 GMT
- Lines: 24
-
-
- What you want is:
-
- $a = "hello";
- @a = (one, two, threeeee);
- %a = (a, apple, b, banana, c, cherry);
-
- then things like:
-
- print $a, $a{'a'}, $a[0], "\n";
-
- Will work.
-
- ${$a} is not valid in perl (or at least, it does something that you
- are not expecting).
-
-
- -AJS
-
- --
- --------
- Disclaimer: I am solely responsible for the content of this message.
- The views expressed here may not be the views of I-Kinetics, Fidelity,
- any of the Fidelity-owned corporations or my mother.
-