in reply to subroutine scalar string input

When you pass arguments to a subroutine, they are passed in via the special array @_. To get them back into named scalars, assign that to the name(s) you want:

my $html = "hello"; routine( $html ); sub routine{ my( $arg1 ) = @_; print $arg1; }

NOTE: the variable name $arg1 is just an example.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

RIP Neil Armstrong