G'day HH CHANG,
You need to show the actual code you're running and the output it produces including any error and warning messages: see the "How do I post a question effectively?" guidelines for details.
The code "@a = (1 2 3 4)" is syntactically incorrect and perl will abort compilation when it is encountered. The code will not run and "$y = join ',' , @a;" will be ignored:
$ perl -e '@a = (1 2 3 4); $y = join ",", @a' Number found where operator expected at -e line 1, near "1 2" (Missing operator before 2?) Number found where operator expected at -e line 1, near "2 3" (Missing operator before 3?) Number found where operator expected at -e line 1, near "3 4" (Missing operator before 4?) syntax error at -e line 1, near "1 2" Execution of -e aborted due to compilation errors.
If you're actually writing code like that, you may well have all sorts of other problems. From your last post, you seem to know about strict and warnings: use these pragmata in all your scripts.
While I can't tell for certain from what you've posted here, a simplistic fix to the problem you describe may be:
@a = (qw{1 2 3 4})
-- Ken
In reply to Re: draw picture by google Chart
by kcott
in thread draw picture by google Chart
by HHCHANG
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |