RE: problem with nested regex matchs

2012-03-08 Thread Kronheim, David (Contr)
Chris Stinemetz [chrisstinem...@gmail.com] wrote: >Hello Shanmugam, > >Please start a new thread when you post a new topic. > > >On Wed, Mar 7, 2012 at 5:14 PM, shanmugam m wrote: >> Hi, >> This is my first perl program..I'm getting wired errors.Please take a >> look. >> >> This line looks inco

Re: work with hexadecimal values

2012-03-08 Thread Shawn H Corey
On 12-03-08 03:06 PM, Steve Bertrand wrote: You wanted to find out the numbers between the two. While playing around, I found this: perl -e 'printf "%X\n", $_ for ( 0x415a+1 .. 0x415f-1 ) ...prints: 415B 415C 415D 415E Yes the 0x notation is just another number. You can do anything with it

Re: Of Date-Manip and Perl versions

2012-03-08 Thread Bruce Ferrell
On 03/08/2012 12:35 PM, sb...@cpan.org wrote: > On 03/08/2012 02:53 PM, Bruce Ferrell wrote: >> Just thought I'd share with the group and experience I just had. In perhaps >> the hope of sparing others of the PITA I just went through. >> >> First of all, I will acknowledge I am perhaps not the be

Re: work with hexadecimal values

2012-03-08 Thread Steve Bertrand
On 2012-03-08 08:24, sunita.prad...@emc.com wrote: Hi I have one range of hexadecimal numbers like : 415A till 415F . I need to find all other numbers between this 2 . Is there any Perl function which will help to find all numbers or any other way in Perl ? You wanted to find out the numbers

Re: work with hexadecimal values

2012-03-08 Thread Steve Bertrand
On 2012-03-08 08:41, John W. Krahn wrote: sunita.prad...@emc.com wrote: Hi Hello, I have one range of hexadecimal numbers like : 415A till 415F . I need to find all other numbers between this 2 . Is there any Perl function which will help to find all numbers or any other way in Perl ? $ pe

Of Date-Manip and Perl versions

2012-03-08 Thread Bruce Ferrell
Just thought I'd share with the group and experience I just had. In perhaps the hope of sparing others of the PITA I just went through. First of all, I will acknowledge I am perhaps not the best of programmers... Perhaps being an understatement. Second of all, it is not a request for a "better

Re: work with hexadecimal values

2012-03-08 Thread Steve Bertrand
On 2012-03-08 08:41, John W. Krahn wrote: sunita.prad...@emc.com wrote: Hi Hello, I have one range of hexadecimal numbers like : 415A till 415F . I need to find all other numbers between this 2 . Is there any Perl function which will help to find all numbers or any other way in Perl ? $ pe

Re: multiple pattern matching

2012-03-08 Thread Rob Dixon
On 08/03/2012 17:03, sunita.prad...@emc.com wrote: Hi All I have one output of one my command like : $output = "Step 155 of 171 steps.Executing. Step 168 of 171 steps.Executing. Step 171 of 171 steps..

Re: multiple pattern matching

2012-03-08 Thread Chris Stinemetz
On Thu, Mar 8, 2012 at 11:03 AM, wrote: > Hi All > > I have one output of one my command like : > > $output = "Step 155 of 171 > steps.Executing. >    Step 168 of 171 steps.Executing. >    Step 171 of 171 steps..

Re: work with hexadecimal values

2012-03-08 Thread Rob Dixon
On 08/03/2012 16:18, sunita.prad...@emc.com wrote: From: John W. Krahn [mailto:jwkr...@shaw.ca] > sunita.prad...@emc.com wrote: I have one range of hexadecimal numbers like : 415A till 415F . I need to find all other numbers between this 2 . Is there any Perl function which will help to find a

Re: work with hexadecimal values

2012-03-08 Thread Shawn H Corey
On 12-03-08 11:44 AM, sunita.prad...@emc.com wrote: Sorry , I mean how will I get all those hexadecimal numbers in a array? my @hex = (); for my $nbr ( hex( "415A" ) .. hex( "415F" ) ){ push @hex, sprintf '%04X', $nbr; } You could also use map: my @hex = map { sprintf '%04X', $_ } hex( "4

multiple pattern matching

2012-03-08 Thread Sunita.Pradhan
Hi All I have one output of one my command like : $output = "Step 155 of 171 steps.Executing. Step 168 of 171 steps.Executing. Step 171 of 171 steps.Executing. Local: COMMIT...

RE: work with hexadecimal values

2012-03-08 Thread Sunita.Pradhan
Sorry , I mean how will I get all those hexadecimal numbers in a array? -Sunita -Original Message- From: sunita.prad...@emc.com [mailto:sunita.prad...@emc.com] Sent: Thursday, March 08, 2012 9:48 PM To: jwkr...@shaw.ca; beginners@perl.org Subject: RE: work with hexadecimal values Than

RE: work with hexadecimal values

2012-03-08 Thread Sunita.Pradhan
Thanks John . How can I collect all devices in a array ? -Sunita -Original Message- From: John W. Krahn [mailto:jwkr...@shaw.ca] Sent: Thursday, March 08, 2012 7:11 PM To: Perl Beginners Subject: Re: work with hexadecimal values sunita.prad...@emc.com wrote: > Hi Hello, > I have one r

beginners@perl.org

2012-03-08 Thread Shawn H Corey
On 12-03-08 09:19 AM, lina wrote: a quick question, is padre very popular, do you use it often, seems a bit heavy. I use GViM since it allows me to place to files (or the same one) side-by-side on the screen. Padre doesn't do this yet. But learning to use GViM is difficult since its commands

beginners@perl.org

2012-03-08 Thread lina
On Thu, Mar 8, 2012 at 10:14 PM, lina wrote: > On Thu, Mar 8, 2012 at 10:07 PM, Shawn H Corey wrote: >> On 12-03-07 11:49 PM, lina wrote: >>> >>> I only read till 15 pages, progressed so slow, and sometimes choked by >>> understanding the "pack". really hard for me to understand it, so I >>> just

beginners@perl.org

2012-03-08 Thread lina
On Thu, Mar 8, 2012 at 10:07 PM, Shawn H Corey wrote: > On 12-03-07 11:49 PM, lina wrote: >> >> I only read till 15 pages, progressed so slow, and sometimes choked by >> understanding the "pack". really hard for me to understand it, so I >> just skip.  meanwhile I also did some search. > > > pack(

beginners@perl.org

2012-03-08 Thread Shawn H Corey
On 12-03-07 11:49 PM, lina wrote: I only read till 15 pages, progressed so slow, and sometimes choked by understanding the "pack". really hard for me to understand it, so I just skip. meanwhile I also did some search. pack() is difficult to understand, and most of the time, unneeded. I sugges

Re: work with hexadecimal values

2012-03-08 Thread John W. Krahn
sunita.prad...@emc.com wrote: Hi Hello, I have one range of hexadecimal numbers like : 415A till 415F . I need to find all other numbers between this 2 . Is there any Perl function which will help to find all numbers or any other way in Perl ? $ perl -e'printf "%X\n", $_ for hex( "415A" ) .

Re: work with hexadecimal values

2012-03-08 Thread Brian Fraser
On Thu, Mar 8, 2012 at 10:24 AM, wrote: > Hi > > I have one range of hexadecimal numbers like : 415A till 415F . > I need to find all other numbers between this 2 . Is there any Perl > function which will help to find all numbers or any other way in Perl ? > > > Thanks > Sunita > my @numbers = h

work with hexadecimal values

2012-03-08 Thread Sunita.Pradhan
Hi I have one range of hexadecimal numbers like : 415A till 415F . I need to find all other numbers between this 2 . Is there any Perl function which will help to find all numbers or any other way in Perl ? Thanks Sunita

RE: problem with nested regex matchs

2012-03-08 Thread Ken Slater
> -Original Message- > From: Chris Stinemetz [mailto:chrisstinem...@gmail.com] > Sent: Wednesday, March 07, 2012 8:57 PM > To: John W. Krahn; beginners@perl.org > Subject: Re: problem with nested regex matchs > > >> > >>> > >>> open(MYINPUTFILE ,"/net/fallsroot/export/d100/m4/input_file");