alekto <alekto.antarct...@gmail.com> asked: > I manage to generate the array from the input file, but it seems like > there is something wrong with my subroutine at the end, I have been > using the examples at cpan.org as an templat for this subroutine. > Following is the error msg, as well as the complete script.
> hostname$ ./bars.pl -f age > ./bars.pl: line 5: use: command not found > Array found where operator expected at ./bars.pl line 90, at end of > line > (Might be a runaway multi-line // string starting on line 53) And the winner is... printHistogram(/@array,$filename,$histmin,$histmax,'Age'); Use \ instead of / to create a reference. HTH, Thomas -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/