hi just wanna ask is it possible for perl to get the value of a print command? for ex.
my $result = print "hello world\n"; print "$result\n";
why is it that the "print $result" would print a value which is 1?.. is it possible to get the result "hello world" not 1?... how do i do it?.. .how do i change my code? help please.
Update: tnx..u solved the problem.. this is what i really need..tnx for ur time..
In reply to how to get value of print command by jaydot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |