You're capturing the return value of the print command. If you simply want to assign a string to a variable:
my $result = "hello world";Update: Please don't remove a question once you've posted it.
In reply to Re: how to get value of print command
by marto
in thread how to get value of print command
by jaydot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |