Re: Different keys have same value in a hash?

2008-10-17 Thread Rob Dixon
Marko Krstic wrote: > > What is the best (shortest) way to define a hash where different keys > have same values: > > %my_hash = { 1 => 'something', 2 => 'something', 3 => 'something else'}; > > Is there a way to write something like: > > %my_hash = { 1,2 => 'something', 3 => 'something else',

Re: How to list all used modules?

2008-10-17 Thread Rob Dixon
Chas. Owens wrote: > On Thu, Oct 16, 2008 at 00:06, howa <[EMAIL PROTECTED]> wrote: >> Hello, >> >> Conside I have the code: >> >> use LWP::UserAgent (); >> use Apache::DBI (); >> use DBI (); >> ... >> ... >> >> Some points later, I want to list all the used modules, is it >> possible? >> >> E.g. P

Re: translate IP mask

2008-10-17 Thread Rob Dixon
Sandy lone wrote: > On Thu, Oct 16, 2008 at 7:57 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: > >> print "$ip/" . unpack "%32b*", inet_aton $mask; >> ' > > Thanks, that's the cool solution. I think you (Sandy) ought to explain to us why it works before you use it in your own code. Rob -- To u

Perl-Module to control Modems using AT-Commands

2008-10-17 Thread Michelle Konzack
Hello, I am using Debian GNU/Linux and looking for a perl module to access GSM (GPRS/UMTS) modems. It must be able to switch from Control- to Data- Mode. In the Debian distribution I have only a for me non-uasble module "libmodem-vgetty-perl". Any suggestions? Thanks, Greetings and nice Da