Re: Burnt Camel Club

2009-09-23 Thread Raymond Wan
Hi Tim, Tim Bowden wrote: Volume isn't always quality. There are some lists around where a significant portion of the volume is the blind leading the blind. The rest is experts trying to clean up the mess. Here the emphasis seems to be a little more on not making a mess in the first place (

Re: How to provide editor environment on

2009-09-23 Thread Harry Putnam
Harry wrote: > In shell scripting, at least with bash, taking input from user is done > with `read line' but you can say 'read -e line' and the input is > suddenly done with bash completion.. and I think a few other niceties. > > Is there something similar in perl? Chas O. ans

Automating for the SNMPv3 query and trap

2009-09-23 Thread Rachit Gupta
HI All, I want to write perl script to automate SNMPv3 query and traps. Is there any module that can be use for the same? Also what are the different functions for the query / MIB file compilation and traps? Please suggest -- Rachit Gupta r.rac...@gmail.com 91-9873242190

Re: decimal to binary?

2009-09-23 Thread Bryan R Harris
>> "BRH" == Bryan R Harris writes: > > BRH> Maybe this is just my own ignorance on big-endian vs. little endian, > but > BRH> this code: > > BRH> print "big-endian: ", unpack("H*", pack("d", -3205.0569059)), > "\n"; > BRH> print "little-endian: ", unpack("h*", pack("d", -32

Re: best way to get number of elements in list value

2009-09-23 Thread Chas. Owens
On Wed, Sep 23, 2009 at 19:16, Mike McClain wrote: > On Tue, Sep 22, 2009 at 05:09:26AM -0400, Shawn H Corey wrote: >> Roman Makurin wrote: >> >Hi All! >> > >> >right now im doing it in following way: >> >$size = @{[func_that_return_list_value]}; >> > >> >is there any best way to do it ? >> > >> S

Re: best way to get number of elements in list value

2009-09-23 Thread Mike McClain
On Tue, Sep 22, 2009 at 05:09:26AM -0400, Shawn H Corey wrote: > Roman Makurin wrote: > >Hi All! > > > >right now im doing it in following way: > >$size = @{[func_that_return_list_value]}; > > > >is there any best way to do it ? > > > See `perldoc -f scalar` http://perldoc.perl.org/functions/scal

Re: Burnt Camel Club

2009-09-23 Thread Mike McClain
On Tue, Sep 22, 2009 at 08:55:32AM -0500, Ian wrote: > On Mon, Sep 21, 2009 at 10:09 PM, Randal L. Schwartz > wrote: > > > > Yup. I care when it might harm others. Otherwise, I tend not to > > talk... plenty of other people here to give answers. I only doublecheck > > answers anymore. > > > > Y

Re: decimal to binary?

2009-09-23 Thread Chas. Owens
On Wed, Sep 23, 2009 at 15:53, Bob McConnell wrote: snip > OK, that I can understand. However, I don't see where that was expressed > or implied in the original query. Are you assuming that every current > architecture and Perl implementation uses that format to store double > precision numbers? I

Re: decimal to binary?

2009-09-23 Thread Shawn H Corey
Bryan R Harris wrote: Bryan R Harris wrote: I need to convert a number like this: -3205.0569059 ... into an 8-byte double (big and little endian), e.g. 4f 3e 52 00 2a bc 93 d3 (I just made up those 8 byte values). Is this easy in perl? Are long and short ints easy as well? $ perl -le'print

Re: decimal to binary?

2009-09-23 Thread Uri Guttman
> "JWK" == John W Krahn writes: JWK> AFAIK floating point numbers don't have endianness (but I may be wrong.) JWK> (Besides, in the above example, endianness would be on the pack('d') JWK> side of the equation.) floats are no different than integers in that you must select the ordering

Re: decimal to binary?

2009-09-23 Thread John W. Krahn
Bryan R Harris wrote: John W. Krahn wrote: Bryan R Harris wrote: I need to convert a number like this: -3205.0569059 ... into an 8-byte double (big and little endian), e.g. 4f 3e 52 00 2a bc 93 d3 (I just made up those 8 byte values). Is this easy in perl? Are long and short ints easy as

Re: decimal to binary?

2009-09-23 Thread Uri Guttman
> "BRH" == Bryan R Harris writes: BRH> Maybe this is just my own ignorance on big-endian vs. little endian, but BRH> this code: BRH> print "big-endian: ", unpack("H*", pack("d", -3205.0569059)), "\n"; BRH> print "little-endian: ", unpack("h*", pack("d", -3205.0569059)), "\n"

Re: decimal to binary?

2009-09-23 Thread Chas. Owens
On Wed, Sep 23, 2009 at 17:00, Bryan R Harris wrote: > >> Bryan R Harris wrote: >>> >>> I need to convert a number like this:   -3205.0569059 >>> ... into an 8-byte double (big and little endian), e.g. 4f 3e 52 00 2a bc 93 >>> d3  (I just made up those 8 byte values). >>> >>> Is this easy in perl?

Re: decimal to binary?

2009-09-23 Thread Bryan R Harris
> Bryan R Harris wrote: >> >> I need to convert a number like this: -3205.0569059 >> ... into an 8-byte double (big and little endian), e.g. 4f 3e 52 00 2a bc 93 >> d3 (I just made up those 8 byte values). >> >> Is this easy in perl? Are long and short ints easy as well? > > $ perl -le'prin

Re: decimal to binary?

2009-09-23 Thread Uri Guttman
> "BM" == Bob McConnell writes: BM> OK, that I can understand. However, I don't see where that was BM> expressed or implied in the original query. Are you assuming that BM> every current architecture and Perl implementation uses that BM> format to store double precision numbers? Is th

RE: decimal to binary?

2009-09-23 Thread Bob McConnell
From: Bryan R Harris >> From: Uri Guttman >> "BM" == Bob McConnell writes: >>> >>> BM> From: Bryan R Harris > > I need to convert a number like this: -3205.0569059 > ... into an 8-byte double (big and little endian), e.g. 4f 3e 52 >> 00 2a >>> BM> bc 93 > d3 (I

Re: decimal to binary?

2009-09-23 Thread Chas. Owens
On Wed, Sep 23, 2009 at 15:32, Bob McConnell wrote: > From: Uri Guttman > >>> "BM" == Bob McConnell writes: >> >>   BM> From: Bryan R Harris >>   >> >>   >> I need to convert a number like this:   -3205.0569059 >>   >> ... into an 8-byte double (big and little endian), e.g. 4f 3e 52 > 00 2a >

Re: How to provide editor environment on

2009-09-23 Thread Harry Putnam
"Chas. Owens" writes: > On Tue, Sep 22, 2009 at 23:10, Harry Putnam wrote: >> "Chas. Owens" writes: >> How big of a chore would it be to include code into the script that creates some kind of editor like environment and allows bash style completion? I'm a very low level

Re: decimal to binary?

2009-09-23 Thread Uri Guttman
> "BRH" == Bryan R Harris writes: >> From: Uri Guttman >> "BM" == Bob McConnell writes: >>> BM> From: Bryan R Harris > > I need to convert a number like this: -3205.0569059 > ... into an 8-byte double (big and little endian), e.g. 4f 3e 52 >> 00 2a

Re: decimal to binary?

2009-09-23 Thread Uri Guttman
> "BM" == Bob McConnell writes: BM> From: Uri Guttman >>> "BM" == Bob McConnell writes: >> BM> From: Bryan R Harris >> >> >> >> I need to convert a number like this: -3205.0569059 >> >> ... into an 8-byte double (big and little endian), e.g. 4f 3e 52 BM> 00 2a BM> b

Re: decimal to binary?

2009-09-23 Thread Bryan R Harris
> From: Uri Guttman > >>> "BM" == Bob McConnell writes: >> >> BM> From: Bryan R Harris I need to convert a number like this: -3205.0569059 ... into an 8-byte double (big and little endian), e.g. 4f 3e 52 > 00 2a >> BM> bc 93 d3 (I just made up those 8 byte values

RE: decimal to binary?

2009-09-23 Thread Bob McConnell
From: Uri Guttman >> "BM" == Bob McConnell writes: > > BM> From: Bryan R Harris > >> > >> I need to convert a number like this: -3205.0569059 > >> ... into an 8-byte double (big and little endian), e.g. 4f 3e 52 00 2a > BM> bc 93 > >> d3 (I just made up those 8 byte values).

Re: decimal to binary?

2009-09-23 Thread John W. Krahn
Bryan R Harris wrote: I need to convert a number like this: -3205.0569059 ... into an 8-byte double (big and little endian), e.g. 4f 3e 52 00 2a bc 93 d3 (I just made up those 8 byte values). Is this easy in perl? Are long and short ints easy as well? $ perl -le'print unpack "H*", pack "d

Re: decimal to binary?

2009-09-23 Thread Bryan R Harris
>> I need to convert a number like this: -3205.0569059 >> ... into an 8-byte double (big and little endian), e.g. 4f 3e 52 00 2a > bc 93 >> d3 (I just made up those 8 byte values). >> >> Is this easy in perl? Are long and short ints easy as well? > > The sprintf() family is your friend. I

Re: decimal to binary?

2009-09-23 Thread Uri Guttman
> "BM" == Bob McConnell writes: BM> From: Bryan R Harris >> >> I need to convert a number like this: -3205.0569059 >> ... into an 8-byte double (big and little endian), e.g. 4f 3e 52 00 2a BM> bc 93 >> d3 (I just made up those 8 byte values). >> >> Is this easy in perl?

RE: decimal to binary?

2009-09-23 Thread Bob McConnell
From: Bryan R Harris > > I need to convert a number like this: -3205.0569059 > ... into an 8-byte double (big and little endian), e.g. 4f 3e 52 00 2a bc 93 > d3 (I just made up those 8 byte values). > > Is this easy in perl? Are long and short ints easy as well? The sprintf() family is your

decimal to binary?

2009-09-23 Thread Bryan R Harris
I need to convert a number like this: -3205.0569059 ... into an 8-byte double (big and little endian), e.g. 4f 3e 52 00 2a bc 93 d3 (I just made up those 8 byte values). Is this easy in perl? Are long and short ints easy as well? Thanks! - Bryan -- To unsubscribe, e-mail: beginners-un

Re: Burnt camel etc. etc

2009-09-23 Thread Chas. Owens
On Wed, Sep 23, 2009 at 08:46, ANJAN PURKAYASTHA wrote: > I've been reading these posts with a great deal of interest. > I don't know what much of the fuss is about (having joined this forum about > 2 years back), but I will say that I have had some VERY helpful responses > from experts and beginn

Burnt camel etc. etc

2009-09-23 Thread ANJAN PURKAYASTHA
I've been reading these posts with a great deal of interest. I don't know what much of the fuss is about (having joined this forum about 2 years back), but I will say that I have had some VERY helpful responses from experts and beginners alike. For the most part this list does a great job in helpin

RE: Testing with Selenium

2009-09-23 Thread Bob McConnell
From: Steve Bertrand > Steve Bertrand wrote: > > Bob McConnell wrote: >>> >>> I have begun the task of automating functional tests for some of our web >>> servers. I have had some success using Selenium IDE in Firefox to >>> capture input sequences, exporting them to Perl scripts, then using the >>

Friday Fun [was: Burnt Camel Club]

2009-09-23 Thread Balázs Botond
Tim, > Given FOSS is supposed to be all about having fun, why don't we have a > 'Friday Fun' challenge aimed at beginners? I would absolutely LOVE such a challenge! Regards, Botond -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.or

Re: Burnt Camel Club

2009-09-23 Thread Goke Aruna
I enjoyed writing my script in perl despite not being a computer programmer, I get my need done without much stress, hence no need to increase the mail volume on the list. Perl6 definitely will take me higher to programming. Perl is still the best for beginers at least you can write your novice s

Re: Burnt Camel Club

2009-09-23 Thread Tim Bowden
On Tue, 2009-09-22 at 09:59 -0500, Bryan R Harris wrote: > > On Mon, Sep 21, 2009 at 10:09 PM, Randal L. Schwartz > > wrote: > > > >> > >> Yup. I care when it might harm others. Otherwise, I tend not to > >> talk... plenty of other people here to give answers. I only doublecheck > >> answers a

Re: mbtomh in perl?

2009-09-23 Thread Alexey Mishustin
9/23/2009, "Shlomi Fish" вы писали: >> Is there a perl tool for converting mbox files to MH directories? [snip] >Try the Mail::Box module: > >http://search.cpan.org/dist/Mail-Box/ > >It seems to still be the best of breed in this regard from what some >authoritative sources in the Perl Email Pr

Re: mbtomh in perl?

2009-09-23 Thread Shlomi Fish
Hi Alexey! On Tuesday 22 Sep 2009 16:56:42 Mishustin Alexey wrote: > Hello, > > Is there a perl tool for converting mbox files to MH directories? > > Google found only a tool on tcl [1] and a perl tool for converting mbox > to Maildir [2]. > > [1] - http://wiki.tcl.tk/15276 > [2] - http://batle