in reply to can we pass two variable to foreach loop

Not until Perl 6.

Meanwhile, there are still other ways to do it. Any specific use case in mind?

print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!