Something mojolicious

2012-07-05 Thread lina
Hi, Today I tried to write my first hello script, $ mojo generate lite_app hello vim hello to the following: get '/' => sub { my $self = shift; $self->render_text('Hello!'); }; $ morbo hello [Thu Jul 5 17:49:39 2012] [info] Listening at "http://*:3000";. Server available at http://127.0.

Re: Something mojolicious

2012-07-05 Thread lina
Furthermore, Host is up. Other addresses for localhost (not scanned): 127.0.0.1 PORT STATESERVICE 3000/tcp filtered ppp Thanks, -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Something mojolicious

2012-07-05 Thread David Precious
On Thu, 5 Jul 2012 18:03:07 +0800 lina wrote: > But on my two webbrowers when I tried localhost:3000 it failed to > open. As in connection failed, or gave some other error? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http:

Re: Something mojolicious

2012-07-05 Thread Octavian Rasnita
Have you tried localhost:3000 or the correct URL http://localhost:3000 ? --Octavian - Original Message - From: "lina" To: Sent: Thursday, July 05, 2012 1:03 PM Subject: Something mojolicious > Hi, > > Today I tried to write my first hello script, > > $ mojo generate lite_app hello

Re: Something mojolicious

2012-07-05 Thread lina
On Thu, Jul 5, 2012 at 6:18 PM, David Precious wrote: > On Thu, 5 Jul 2012 18:03:07 +0800 > lina wrote: > >> But on my two webbrowers when I tried localhost:3000 it failed to >> open. > > As in connection failed, or gave some other error? Hi, It shows The connection has timed out

Re: Something mojolicious

2012-07-05 Thread lina
On Thu, Jul 5, 2012 at 7:14 PM, Octavian Rasnita wrote: > Have you tried localhost:3000 or the correct URL http://localhost:3000 ? Yes. I tried again. > > --Octavian > > - Original Message - > From: "lina" > To: > Sent: Thursday, July 05, 2012 1:03 PM > Subject: Something mojolicious > >

Re: Newbie Where to start perhaps a hash-table is what I need to learn about ?

2012-07-05 Thread Phil Pinkerton
On Jul 4, 2012, at 6:02 PM, David Precious wrote: > On Wed, 4 Jul 2012 17:01:35 -0400 > Phil Pinkerton wrote: > >> Very nice to know about CPAN. > > IMO, CPAN is one of Perl's strongest features :) > > >> got a syntax error though with your script >> >> syntax error at ./getACLinfo.pl line

Re: Newbie Where to start perhaps a hash-table is what I need to learn about ?

2012-07-05 Thread Phil Pinkerton
On Jul 4, 2012, at 5:46 PM, Chris Charley wrote: > > > "Phil Pinkerton" wrote in message > news:7a962da1-a5fb-4046-bbf5-f888dd715...@gmail.com... >> Very nice to know about CPAN. >> >> got a syntax error though with your script >> >> syntax error at ./getACLinfo.pl line 51, near "say join"

use sort error

2012-07-05 Thread xiyoulaoyuanjia
hi: i want sort my array .but the result is not right. i did not know why ? ---begin code-- perl -e ' @AoH = ( { rsh => "0.4", }, { telnet=> "0.022", }, { ssh => "0.3",

Re: Newbie Where to start perhaps a hash-table is what I need to learn about ?

2012-07-05 Thread David Precious
On Thu, 5 Jul 2012 09:30:01 -0400 Phil Pinkerton wrote: > ok using the example input file I got errors > > Use of uninitialized value $current_resource in string eq > at /Library/Perl/5.12/SVN/Access.pm line 70, line 3. [...] > Invalid resource format in ! (format 'repo:/path')! Ah, I recall no

Re: use sort error

2012-07-05 Thread Shlomi Fish
Hi xiyoulaoyuanjia, On Thu, 5 Jul 2012 22:53:03 +0800 xiyoulaoyuanjia wrote: > hi: > > i want sort my array .but the result is not right. i did not know why ? > > ---begin > code-- > perl -e ' > > @AoH = ( >

Re: Newbie Where to start perhaps a hash-table is what I need to learn about ?

2012-07-05 Thread Phil Pinkerton
On Jul 5, 2012, at 10:46 AM, David Precious wrote: > On Thu, 5 Jul 2012 09:30:01 -0400 > Phil Pinkerton wrote: >> ok using the example input file I got errors >> >> Use of uninitialized value $current_resource in string eq >> at /Library/Perl/5.12/SVN/Access.pm line 70, line 3. > [...] >> Inva

Re: Something mojolicious

2012-07-05 Thread Michael Greb
On Thu, Jul 5, 2012 at 6:19 AM, lina wrote: > PORT STATESERVICE > 3000/tcp filtered ppp This should show state 'open'. Do you have a firewall configured that would be blocking this? 'iptables -L -vn' output will show this. Mike -- To unsubscribe, e-mail: beginners-unsubscr...@perl.or

Re: Newbie Where to start perhaps a hash-table is what I need to learn about ?

2012-07-05 Thread Phil Pinkerton
On Jul 5, 2012, at 10:46 AM, David Precious wrote: > On Thu, 5 Jul 2012 09:30:01 -0400 > Phil Pinkerton wrote: >> ok using the example input file I got errors >> >> Use of uninitialized value $current_resource in string eq >> at /Library/Perl/5.12/SVN/Access.pm line 70, line 3. > [...] >> Inva

Re: Newbie Where to start perhaps a hash-table is what I need to learn about ?

2012-07-05 Thread Phil Pinkerton
On Jul 5, 2012, at 10:46 AM, David Precious wrote: > On Thu, 5 Jul 2012 09:30:01 -0400 > Phil Pinkerton wrote: >> ok using the example input file I got errors >> >> Use of uninitialized value $current_resource in string eq >> at /Library/Perl/5.12/SVN/Access.pm line 70, line 3. > [...] >> Inva

Re: use sort error

2012-07-05 Thread xiyoulaoyuanjia
- 1.first do you meaning values(%{$a}) as same as values($a) which $a is references starting from perl-5.14 . 2. i did not know why I compare two lists ? values($a) return the value of hash which has only one element. so i just think values($a) return a list just when $a has more than

Re: use sort error

2012-07-05 Thread Jim Gibson
On Jul 5, 2012, at 7:57 PM, xiyoulaoyuanjia wrote: > - 1.first do you meaning values(%{$a}) as same as values($a) which $a > is references starting from perl-5.14 . If $a is a reference to a hash, then %{$a} and %$a represent that hash. For Perls earlier than 5.12, the argument to value