File:
[LON-CAPA] /
loncom /
html /
adm /
help /
tex /
Attic /
Spreadsheet_Lists.tex
Revision
1.2:
download - view:
text,
annotated -
select for diffs
Wed Dec 11 19:04:47 2002 UTC (21 years, 9 months ago) by
albertel
Branches:
MAIN
CVS tags:
version_1_0_0,
version_0_99_5,
version_0_99_4,
version_0_99_3,
version_0_99_2,
version_0_99_1,
version_0_99_0,
version_0_6_2,
version_0_6,
conference_2003,
HEAD
- spellchecked (BUG#1052)
\label{Spreadsheet_Lists}
When you have a list of numbers in a cell, how it is displayed depends
on how you separate the numbers and how Perl interprets the results.
\textbf{35 45 12} will not generate any result because this is an
invalid perl statement.
\textbf{35,45,12} will have a result of 12 because Perl has a comma
operator similar to the comma operator\index{comma operator} in C.
The comma operator is binary and returns the value on its right. Thus
\texttt{\$variable = 15, 26;} assigns \texttt{\$variable} the value
26. If you need the values to all be displayed, enclose the entire
cell contents in quotes.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>