user3369592 user3369592 - 1 year ago 266
Perl Question

perl redirect url with the paramter using $Std->url()

I am new to Perl/Mason.
My url is
which will return a png image.
In this url,
is the parameter. ( equals to $orderViewHelper->{orderId} ).
I have created an
which will hold
object so I can access it in other classes.
Is there a way that I can use
to get the image and put it into myImage?

$orderViewHelper->{myImage} = $Std->url('$orderViewHelper->{orderId}/2016image',
{ absolute =>1

Answer Source

I think this will work:

$orderViewHelper->{myImage} = $Std->url("$orderViewHelper->{orderId}/2016image", { absolute =>1 });
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download