version 1.2, 2003/10/14 16:03:51
|
version 1.3, 2006/08/08 17:47:27
|
Line 9 When you have a list of numbers in a cel
|
Line 9 When you have a list of numbers in a cel
|
on how you separate the numbers and how Perl interprets the results. |
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 |
\textbf{35 45 12} will not generate any result because this is an |
invalid perl statement. |
invalid Perl statement. |
|
|
\textbf{35,45,12} will have a result of 12 because Perl has a comma |
\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. |
operator similar to the comma operator\index{comma operator} in C. |
Line 17 operator similar to the comma operator\i
|
Line 17 operator similar to the comma operator\i
|
The comma operator is binary and returns the value on its right. Thus |
The comma operator is binary and returns the value on its right. Thus |
\texttt{\$variable = 15, 26;} assigns \texttt{\$variable} the value |
\texttt{\$variable = 15, 26;} assigns \texttt{\$variable} the value |
26. If you need the values to all be displayed, enclose the entire |
26. If you need the values to all be displayed, enclose the entire |
cell contents in quotes. |
cell contents in quote marks. |