in reply to Re: print question
in thread print question
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: print question
by Anonymous Monk on Aug 16, 2007 at 03:03 UTC | |
("a", "b") and qw(a, b) are two equivalent ways of defining a list, so both examples should not work(because print has higher priority than [1]):
But for some reason only the first one does not work... | [reply] [d/l] [select] |
by liverpole (Monsignor) on Aug 16, 2007 at 03:27 UTC | |
But when you add those 2 magic lines at the top:
That line about "print (...) interpreted as function ..." is what others (eg. mreece and jdporter) have already discussed. Another way of looking at it is that:
is the same, precedence-wise, as:
which doesn't make sense (ie. is a syntax error). You have to force the desired precedence with:
The line "Possible attempt to separate words with commas" is just alerting you to the fact that instead of:
you probably actually meant something more like:
s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/ | [reply] [d/l] [select] |
by Anonymous Monk on Aug 16, 2007 at 09:02 UTC | |
| [reply] [d/l] |
by j1n3l0 (Friar) on Aug 16, 2007 at 09:13 UTC | |
| [reply] [d/l] [select] |