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

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 lina.lastn...@gmail.com 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:

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 lina.lastn...@gmail.com To: beginners@perl.org Sent: Thursday, July 05, 2012 1:03 PM Subject: Something mojolicious Hi, Today I tried to write my first hello script,

Re: Something mojolicious

2012-07-05 Thread lina
On Thu, Jul 5, 2012 at 6:18 PM, David Precious dav...@preshweb.co.uk wrote: On Thu, 5 Jul 2012 18:03:07 +0800 lina lina.lastn...@gmail.com 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

Re: Something mojolicious

2012-07-05 Thread lina
On Thu, Jul 5, 2012 at 7:14 PM, Octavian Rasnita orasn...@gmail.com wrote: Have you tried localhost:3000 or the correct URL http://localhost:3000 ? Yes. I tried again. --Octavian - Original Message - From: lina lina.lastn...@gmail.com To: beginners@perl.org Sent: Thursday, July 05,

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 pcpinker...@gmail.com 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

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 Execution of

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 pcpinker...@gmail.com 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, ACL line 3. [...] Invalid resource format in ! (format

Re: use sort error

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

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 pcpinker...@gmail.com 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, ACL line 3.

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 pcpinker...@gmail.com 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, ACL line 3.

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 pcpinker...@gmail.com 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, ACL line 3.

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