print will print the value of $view while return returns from the subroutine with the value of $view. They don't do the same thing so you need to think about what you're trying to achieve.
In reply to Re: Print Vs Return In a Subroutine
by marto
in thread Print Vs Return In a Subroutine
by remya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |