[Catalyst] hostname

Oleg Pronin syber.rus at gmail.com
Wed Jan 9 07:49:11 GMT 2008


If you mean to get hostname in offline mode (off the processing request) -
the hostname is not known because there are no request.
You can get the server's real hostname by Sys::Hostname::hostname() but this
probably won't help.

2008/1/9, Octavian Rasnita <orasnita at gmail.com>:
>
> Hi,
>
> Is it possible to get the host name in MyApp.pm just like I can do it in a
> controller using
>
> $c->req->hostname;
>
> Thank you.
>
> Octavian
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080109/c8ccf=
ba3/attachment.htm


More information about the Catalyst mailing list