about install module GD::Text

2008-02-21 Thread auser
hi,list! i have install GD lib and GD module for perl, but when i try to install module by cpan,some error happened. (i have install GD::Graph by cpan and it works fine! ) cpan> install GD::Text Running install for module GD::Text Running make for M/MV/MVERB/GDTextUtil-0.86.tar.gz Checksum for /r

Re: GUI Toolkit - which one to learn? (GTK/GTK2/Tk)

2008-02-21 Thread Jenda Krynicky
From: zentara <[EMAIL PROTECTED]> > 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

Re: GUI Toolkit - which one to learn? (GTK/GTK2/Tk)

2008-02-21 Thread Rob Dixon
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 p

Re: GUI Toolkit - which one to learn? (GTK/GTK2/Tk)

2008-02-21 Thread Octavian Rasnita
From: "zentara" <[EMAIL PROTECTED]> See http://www.lostmind.de/gtk2-perl/ and http://perlmonks.org?node_id=632246 and http://perlmonks.org?node_id=473637 and http://gtk2-perl.sourceforge.net/win32/ Thank you. I was able to install it (although after trying to "use Gtk2;" in a program, it gave

email attachement

2008-02-21 Thread Tony Marquis
Hi all, I'm trying to save attachment from emails with a specific subject. but i can't find the right module... thank you for your help. My script : # Duh use Net::IMAP::Simple; use Email::Simple; # Create the object my $imap = Net::IMAP::Simple->new('xxx.

Re: GUI Toolkit - which one to learn? (GTK/GTK2/Tk)

2008-02-21 Thread Robert Hicks
zentara wrote: On Tue, 19 Feb 2008 22:36:09 -0500, [EMAIL PROTECTED] (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 inter

Re: Printing text between two blank lines

2008-02-21 Thread Gunnar Hjalmarsson
obdulio santana wrote: use strict; use warnings; $_ = join '',; s/^\s*\n(^.+\n)(?=^\s*\n)/print $1/egm; 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

Re: Using perl variable in command line

2008-02-21 Thread yitzle
On Thu, Feb 21, 2008 at 10:35 AM, Yoyoyo Yoyoyoyo <[EMAIL PROTECTED]> wrote: > But the commands do still run in the command line, is there anyway to throw > a perl variable in there? Yes. You did it correctly. Look at the code I posted. > my $y = `echo $x`; -- To unsubscribe, e-mail: [EMAIL PROT

Re: Using perl variable in command line

2008-02-21 Thread Yoyoyo Yoyoyoyo
But the commands do still run in the command line, is there anyway to throw a perl variable in there? yitzle <[EMAIL PROTECTED]> wrote: Perl captures the output from backticks so nothing gets printed to the screen. __CODE__ my $x = "efg"; my $y = `echo $x`; print $y; __OUTPUT__ efg __END__ --

Re: Using perl variable in command line

2008-02-21 Thread yitzle
Perl captures the output from backticks so nothing gets printed to the screen. __CODE__ my $x = "efg"; my $y = `echo $x`; print $y; __OUTPUT__ efg __END__ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Using perl variable in command line

2008-02-21 Thread Yoyoyo Yoyoyoyo
Hi all, I am having trouble representing a perl variable when using back ticks to run commands from the unix command line. A simple example would be: #!usr/bin/perl $X = $ARGV[0]; `echo $X`; This does not work (neither does `echo \$X`;). Is there anyway to represent a perl variable when usin

Re: Counting keys in an array of hashes?

2008-02-21 Thread Chas. Owens
On Wed, Feb 20, 2008 at 11:03 PM, <[EMAIL PROTECTED]> wrote: snip > Oh - I wanted to eliminate all members of the array that had more than > 10 instances of the same port. I was hoping that you could do > something like "count keys where port = gi1/1/49". After knowing how > many gi1/1/49 th

Re: Counting keys in an array of hashes?

2008-02-21 Thread jamesdon
On Feb 20, 10:26 pm, [EMAIL PROTECTED] wrote: > Hi, thank you all for your input - I managed to get what I wanted > done. Sorry I was not very clear on the issue, but it helped to write > it out. > > Jim Please ignore this post ^, I do not have a end solution yet. -- To unsubscribe, e-mail: [E

Re: Printing text between two blank lines

2008-02-21 Thread obdulio santana
2008/2/20, John W. Krahn <[EMAIL PROTECTED]>: > > Gunnar Hjalmarsson wrote: > > obdulio santana wrote: > >> Please let me know if everything is Ok. > >> > >> @l = ; > >> @nl = map /^\s*\n/?1:0,@l; > >> map { print $l[$_] if ("$nl[$_ - 1]$nl[$_]$nl[$_ + 1]" eq "101" ) } (0 > .. > >> $#nl); > > > > 1

Re: Counting keys in an array of hashes?

2008-02-21 Thread jamesdon
> I have a feeling that I am going about this in the wrong > way. Can I use hashes in a better way to sort the data based on the > keys? Better yet, can I evaluate the number of keys that match each > other? I don't understand what that means. John Oh - I wanted to eliminate all members of

Re: Counting keys in an array of hashes?

2008-02-21 Thread jamesdon
Hi, thank you all for your input - I managed to get what I wanted done. Sorry I was not very clear on the issue, but it helped to write it out. Jim -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: JendaRex and Perl 5.10

2008-02-21 Thread axtens
Jenda Thank you! Very much! Kind regards, Bruce. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Problem with spaces in paths

2008-02-21 Thread jshock
Thanks John and Gunnar. It's working now. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: address translation

2008-02-21 Thread J. Peng
On Thu, Feb 21, 2008 at 4:11 PM, J. Peng <[EMAIL PROTECTED]> wrote: > On Thu, Feb 21, 2008 at 4:03 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: > > > > So 0x would indicate a network with no hosts on it and thus it > > is not a valid netmask. > > > > yup, but sometime we need a 255.2

Re: address translation

2008-02-21 Thread J. Peng
On Thu, Feb 21, 2008 at 4:03 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: > > So 0x 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, yo

Re: address translation

2008-02-21 Thread John W. Krahn
J. Peng wrote: On Thu, Feb 21, 2008 at 3:29 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: J. Peng wrote: > how to translate this mask to clear text form with perl? > netmask 0x If you mean an IP address netmask then 0x is an invalid netmask because all the bits are 1. John