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: whats the purpose of use Data::Dumper;

2011-06-01 Thread Michael Greb
On Wed, Jun 01, 2011 at 09:07:45AM -0700, eventual wrote: > use Data::Dumper; > > Hi, > Can someone give me a few examples on the purpose of use Data::Dumper; > I tried reading but I could not understand. > Thanks Data::Dumper is a useful modules for converting perl data structures into a string

Re: Conversion program decimal to hex and oct using assertions

2011-05-30 Thread Michael Greb
On Tue, May 31, 2011 at 02:27:53PM +1000, Sayth Renshaw wrote: > This there formula $oct_perm_str = sprintf "%o", $perms; > However it is not working for me. I have used my $oct = sprintf "%0", $number; You want '%o', the lower case letter o for the sprintf format string, the sample code you showe

Re: CGI.pm and scrolling list box code error

2011-05-30 Thread Michael Greb
On Mon, May 30, 2011 at 08:48:44PM -0400, John M Rathbun MD wrote: >print scrolling_list(-name => 'choose',-values=>@terms,-size=>254); scrolling_list wants a reference for the value list: print scrolling_list(-name => 'choose',-values=>\@terms,-size=>254); This should do what you want, w