in reply to Function Prototypes and Array vs. List (Pt. 2)
How do you convert a list to a scalar? Easy. Meditate on this bit from perlfunc:
Remember the following important rule: There is no rule that relates the behavior of an expression in list context to its behavior in scalar context, or vice versa.
There is no general rule.
You have to read the documentation for whatever it is you're using.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Function Prototypes and Array vs. List (Pt. 2)
by tadman (Prior) on Jun 13, 2002 at 14:28 UTC | |
by merlyn (Sage) on Jun 13, 2002 at 14:38 UTC | |
by Abigail-II (Bishop) on Jun 13, 2002 at 16:01 UTC | |
by tadman (Prior) on Jun 14, 2002 at 04:46 UTC | |
by danger (Priest) on Jun 14, 2002 at 07:43 UTC | |
by ariels (Curate) on Jun 13, 2002 at 14:47 UTC | |
by Abigail-II (Bishop) on Jun 13, 2002 at 16:13 UTC |