in reply to Print Vs Return In a Subroutine
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.