If you leave out the referencing in line 2, you are fine (alternatively, do a double dereferencing in the sub).
Hope this helps,
jeroen
"We are not alone"(FZ)
Update: Forgot some ObDocLinks: perlref,
perlreftut,perldsc and perllol
Use CODE tags around your code:
<CODE>
#my perlcode may contain any character like []
</CODE>
Read Writeup Formatting Tips
In reply to Re: hashes,references and subroutines
by jeroenes
in thread hashes,references and subroutines
by diarmuid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |