Re: Simple mailing list > What about Sympa ??? > > 	http://www.sympa.org/ > > It's a very nice and complete mailing list manager, which doesn't   > appear in this web page. My first car was an old CitroÃªn GS with hydro-pneumatic suspension and   frills. I didn't have the money though, so I had to keep it working   with my own skills. I'll never forget the lesson I learned of French   engineering :oD Seriously, I have taken a look at Sympa and I quite like it. It would   be a great choice for an ISP offering a mailing list service. The   learning curve is quite steep though, so I wouldn't suggest it as the   first alternative for a "simple mailing list". IMO it should be on the   MLM list. The simplest choice might be SmartList (if ProcMail is available), but   I don't want to start a war of pet MLMs. --  Cheers Petri GSM +358 400 505 939 >From sgvenmhrlbyhus@gmail.com  Sat Apr 26 15:50:05 2008 Message-ID:  Date: Thu, 21 Feb 2008 08:18:45 -0500 From: "obdulio santana"  To: "Perl Beginners"  Subject: Re: Printing text between two blank lines MIME-Version: 1.0 Content-Type: multipart/alternative;  	boundary ------Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit Content-Disposition: inline 2008/2/20, John W. Krahn : > > Gunnar Hjalmarsson wrote: > > obdulio santana wrote: > >> Please let me know if everything is Ok. > >> > >> @l > >> @nl > >> map { print $l[$_] if ("$nl[$_ - 1]$nl[$_]$nl[$_ + 1]" eq "101" ) } (0 > .. > >> $#nl); > > > > 1. It's no longer a tiny version. ;-) > > 2. It generates a warning. Aren't you using strictures and warnings?? > > 3. I'd use a foreach loop instead of map in void context. > > > >     foreach ( 1 .. $#nl-1 ) { > >         print $l[$_] if ("$nl[$_ - 1]$nl[$_]$nl[$_ + 1]" eq "101" ); > >     } > > > Or print the list returned from map: > > print map "$nl[$_-1]$nl[$_]$nl[$_+1]" eq '101' ? $l[$_] : (), 0 .. $#nl; > > Hi, ****************************************** use strict; use warnings; $_ s/^\\s*\\n(^.+\\n)(? __END__ maybe you prefer this tiny version with strict and warnings, yesterday's version was a rush variant,  ..  sorry but    this one is not so bad or, is it?:-) blah blah weather, sports blah ... just small talk Thanks you all live free or die ************************************************* ------ --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From uiaregi@gunnar.cc  Sat Apr 26 15:50:05 2008 Message-ID: <20080221153953.9861.qmail@lists.develooper.com> To: soiofdvxg@perl.org Date: Thu, 21 Feb 2008 16:39:19 +0100 From: Gunnar Hjalmarsson  MIME-Version: 1.0 Subject: Re: Printing text between two blank lines Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit obdulio santana wrote: >  > use strict; > use warnings; > $_ > s/^\\s*\\n(^.+\\n)(? >    this one >  > is not so bad or, is it?:-) Actually it's rather similar to some of the solutions that were posted  previously in this thread.  http://www.mail-archive.com/beginners%40perl.org/msg92134.html However, the s/// operator seems not to be the right tool. The m//  operator in a while loop is better.      print $1 while /^\\s*\\n(^.+\\n)(? --  Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From efzr.zix@gmail.com  Sat Apr 26 15:50:05 2008 Message-ID: <18c1e5f20802202231t6e0e7dc4m5a1e3d62c7918884@mail.gmail.com> Date: Thu, 21 Feb 2008 14:31:00 +0800 From: "J. Peng"  To: soiofdvxg@perl.org Subject: address translation MIME-Version: 1.0 Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit how to translate this mask to clear text form with perl? netmask 0xffffffff thanks. --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From wwsddj@telus.net  Sat Apr 26 15:50:05 2008 Message-ID: <47BD2846.4020901@telus.net> Date: Wed, 20 Feb 2008 23:29:10 -0800 From: "John W. Krahn"  MIME-Version: 1.0 To: Perl Beginners  Subject: Re: address translation Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit J. Peng wrote: > how to translate this mask to clear text form with perl? > netmask 0xffffffff If you mean an IP address netmask then 0xffffffff is an invalid netmask  because all the bits are 1. John --  Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order.                            -- Larry Wall --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From efzr.zix@gmail.com  Sat Apr 26 15:50:05 2008 Message-ID: <18c1e5f20802202332h50961df8web08f649a1f331fd@mail.gmail.com> Date: Thu, 21 Feb 2008 15:32:01 +0800 From: "J. Peng"  To: "John W. Krahn"  Subject: Re: address translation Cc: "Perl Beginners"  MIME-Version: 1.0 Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit On Thu, Feb 21, 2008 at 3:29 PM, John W. Krahn  wrote: > J. Peng wrote: >  > how to translate this mask to clear text form with perl? >  > netmask 0xffffffff > >  If you mean an IP address netmask then 0xffffffff is an invalid netmask >  because all the bits are 1. > John, all 1 means 255.255.255.255, is it? it's also a valid netmask I think. I dont know how to translate that,:) --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From wwsddj@telus.net  Sat Apr 26 15:50:05 2008 Message-ID: <47BD3037.4000307@telus.net> Date: Thu, 21 Feb 2008 00:03:03 -0800 From: "John W. Krahn"  MIME-Version: 1.0 To: Perl Beginners  Subject: Re: address translation Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit J. Peng wrote: > On Thu, Feb 21, 2008 at 3:29 PM, John W. Krahn  wrote: >> J. Peng wrote: >>  > how to translate this mask to clear text form with perl? >>  > netmask 0xffffffff >> >>  If you mean an IP address netmask then 0xffffffff is an invalid netmask >>  because all the bits are 1. >> >  > John, >  > all 1 means 255.255.255.255, is it? > it's also a valid netmask I think. >  > I dont know how to translate that,:) According to the RFC's      ipAdEntNetMask OBJECT-TYPE                SYNTAX  IpAddress                ACCESS  read-only                STATUS  mandatory                DESCRIPTION                        "The subnet mask associated with the IP address of                        this entry.  The value of the mask is an IP                        address with all the network bits set to 1 and all                        the hosts bits set to 0."                :: So 0xffffffff would indicate a network with no hosts on it and thus it  is not a valid netmask. John --  Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order.                            -- Larry Wall --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From efzr.zix@gmail.com  Sat Apr 26 15:50:05 2008 Message-ID: <18c1e5f20802210011u784063bel5331f632597a43f1@mail.gmail.com> Date: Thu, 21 Feb 2008 16:11:17 +0800 From: "J. Peng"  To: "Perl Beginners"  Subject: Re: address translation MIME-Version: 1.0 Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit On Thu, Feb 21, 2008 at 4:03 PM, John W. Krahn  wrote: > >  So 0xffffffff would indicate a network with no hosts on it and thus it >  is not a valid netmask. > yup, but sometime we need a 255.255.255.255 netmask to forbit the host don't reply to any ARP requests. for example, you have the realservers behind the LVS, if the LVS is running on DR or Tunning mode, you need to bind the VIP on realservers and let the hosts don't reply any arp requests to that VIP. Sorry if I have let people confused. --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From efzr.zix@gmail.com  Sat Apr 26 15:50:05 2008 Message-ID: <18c1e5f20802210020u48cf85b6i39a436e1c15997c0@mail.gmail.com> Date: Thu, 21 Feb 2008 16:20:49 +0800 From: "J. Peng"  To: "Perl Beginners"  Subject: Re: address translation MIME-Version: 1.0 Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit On Thu, Feb 21, 2008 at 4:11 PM, J. Peng  wrote: > On Thu, Feb 21, 2008 at 4:03 PM, John W. Krahn  wrote: >  > >  >  So 0xffffffff would indicate a network with no hosts on it and thus it >  >  is not a valid netmask. >  > > >  yup, but sometime we need a 255.255.255.255 netmask to forbit the host >  don't reply to any ARP requests. sorry please  s/forbit/force/; --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From pqljaohu@gmail.com  Sat Apr 26 15:50:05 2008 Message-ID: <007901c8745d$c65244c0$9200a8c0@octavian> From: "Octavian Rasnita"  To: "beginners perl"  Subject: Re: GUI Toolkit - which one to learn? (GTK/GTK2/Tk) Date: Thu, 21 Feb 2008 09:17:36 +0200 MIME-Version: 1.0 Content-Type: text/plain; 	formatÃ¾d; 	charset	reply-typeContent-Transfer-Encoding: 7bit From: "zentara"  On Tue, 19 Feb 2008 22:36:09 -0500,  zuroeq@users.sourceforge.net > (yitzle) wrote: > >>Hi >>I decided throwing a GUI on Perl would be fun so I want to make a Connect  >>Four. >>Which GUI module would you advise? It seems the major contenders are >>GTK, GTK2/GTK+ and Tk. >>Tk seems to have the simplest interface which is nice, but it sure >>doesn't look as pretty as GTK. >>I took a peek at the GTK+ docs and, using a C-like API, it looks >>pretty cumbersome. >>I would appreciate if you could share your thought and/or views on the  >>topic. >>Thanks! > > I agree with Daniel Kasak, Gtk2 is the way to go. > > I started with Tk, and still love it, but times have changed, and the > Gtk2 system is far superior to Tk, is a bit harder to learn, but well > worth it. So if you had to pick one......Gtk2 will give you the best > future. > > By the way, on linux machines,(and probably on win32), Wx will use > the Gtk2 libs(if found, otherwise it uses XLib or something), and will > just put their object-oriented layer on top of it. Why not using the object oriented Wx directly? > So why not just go with Gtk2? Can Gtk2 be installed under Windows with ppm? I couldn't find a ppm  distribution. Can it be installed from source? It askes for some strange dependencies with  no help about where they can be found or how to install them. Have you succeeded installing Gtk2 under Windows? If yes, please give some  tips. Wx is portable and it can be installed very easy under Windows also. It is  also very easy to create .exe Windows executables with ActiveState PDK. > Also, Gtk2 has the ATK, Accessibility Toolkit, for people with > handicaps. You MAY need to use the Gnome desktop to fully > use it, I've never played with it. Do you know if it is accessible under Windows also? Do you know a sample  program that can be used under Windows in order to test it? Thanks. Octavian --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename >From subsqss@highstream.net  Sat Apr 26 15:50:05 2008 To: soiofdvxg@perl.org From: zentara  Subject: Re: GUI Toolkit - which one to learn? (GTK/GTK2/Tk) Date: Thu, 21 Feb 2008 10:15:57 -0500 Message-ID: <2q4rr3dkm9ved67hg8s40j5hg7abk0bl3d@4ax.com> MIME-Version: 1.0 Content-Type: text/plain; charsetContent-Transfer-Encoding: 7bit On Thu, 21 Feb 2008 09:17:36 +0200, pqljaohu@gmail.com ("Octavian Rasnita") wrote: >From: "zentara"  On Tue, 19 Feb 2008 22:36:09 -0500,  >> I agree with Daniel Kasak, Gtk2 is the way to go. >> By the way, on linux machines,(and probably on win32), Wx will use >> the Gtk2 libs(if found, otherwise it uses XLib or something), and will >> just put their object-oriented layer on top of it. > >Why not using the object oriented Wx directly? > >> So why not just go with Gtk2? > >Can Gtk2 be installed under Windows with ppm? I couldn't find a ppm  >distribution. See http://www.lostmind.de/gtk2-perl/   and http://perlmonks.org?node_idc2246   and http://perlmonks.org?node_idG3637 and http://gtk2-perl.sourceforge.net/win32/ >Can it be installed from source? It askes for some strange dependencies with  >no help about where they can be found or how to install them. >Have you succeeded installing Gtk2 under Windows? If yes, please give some  >tips. See the above links. I have installed Gtk2 under windows, but it was harder than I would expect an average user to go thru.  Yeah, thats why Linux is preferred over Winblows. Linux just makes things work, where windows is a constant battle. I switched to Linux years ago. >> Also, Gtk2 has the ATK, Accessibility Toolkit, for people with >> handicaps. You MAY need to use the Gnome desktop to fully >> use it, I've never played with it. > >Do you know if it is accessible under Windows also? Do you know a sample  >program that can be used under Windows in order to test it? >Thanks. >Octavian Not offhand. But you may want to ask this on the Perl/Gtk2 maillist. http://mail.gnome.org/mailman/listinfo/gtk-perl-list But, if Wx works for you, make life easy and stick with it.  I for one can't answer Wx questions, so we need people who know how to use it. zentara --  I'm not really a human, but I play one on earth. http://zentara.net/japh.html --anodpocnjgcdginpdpff Content-Type: message/rfc822 Content-Disposition: inline; filename