Dear Perlmonks I imported html which i want to parse but when i pass it into a subroutine as a scalar i can only get the input in an array, When i pass the string into the sub and then set it to an array change that array back to the original string scalar value? Sorry guys I really have no idea how to handle this, and I can give some of my test scripts for clarity:S thank you so much
my $html = "hello"; routine($html); sub routine { print $_; print " "; print @_; }
In reply to subroutine scalar string input by robertw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |