Re: Antwort: [Perl-unix-users] What am I doing wrong here...?

2006-03-06 Thread Arijit Das
Thanks a lot...   Sometimes my head gets jammed like the traffic situation in SFO and these days in Bangalore:-)   -Arijit[EMAIL PROTECTED] wrote: Hi Arijit, >I am just wondering...what am I doing wrong here. Why isn't "$latest_CPU_load\n" printing the desired value like $top_output[2]

Re: regexp vs substr for string capture?

2006-03-06 Thread Williamawalters
In a message dated 3/6/2006 5:37:39 P.M. Eastern Standard Time, [EMAIL PROTECTED] writes:   > From: [EMAIL PROTECTED]> [mailto:[EMAIL PROTECTED] > Sent: Monday, March 06, 2006 2:07 PM> Subject: regexp vs substr for string capture?> >Wizards, > >I thought regexp was the fastest way to pull s

Re: regexp vs substr for string capture?

2006-03-06 Thread Petr Vileta
- Original Message - From: <[EMAIL PROTECTED]> To: Sent: Monday, March 06, 2006 10:06 PM Subject: regexp vs substr for string capture? # use strict; use warnings; use Benchmark

RE: regexp vs substr for string capture?

2006-03-06 Thread Wayne Simmons
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 06, 2006 2:07 PM Subject: regexp vs substr for string capture? >Wizards, >I thought regexp was the fastest way to pull strings out of another string; certainly faster >than substr(). It seems I was wr

RE: regexp vs substr for string capture?

2006-03-06 Thread Bowie Bailey
[EMAIL PROTECTED] wrote: > > I thought regexp was the fastest way to pull strings out of another > string; certainly faster than substr(). It seems I was wrong, as the > following code showed > > > > This showed that "old way" ran more than 1200% faster. That's right, > twelve hundred per ce

regexp vs substr for string capture?

2006-03-06 Thread Deane . Rothenmaier
Wizards, I thought regexp was the fastest way to pull strings out of another string; certainly faster than substr(). It seems I was wrong, as the following code showed #   use strict;   use wa

RE: What am I doing wrong here...?

2006-03-06 Thread Brian Raven
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arijit Das Sent: 06 March 2006 14:07 To: activeperl@listserv.activestate.com; perl-unix-users@listserv.activestate.com Subject: What am I doing wrong here...? > I am just wondering...what am I doing wrong here. Why isn't "$latest_CPU_l

What am I doing wrong here...?

2006-03-06 Thread Arijit Das
I am just wondering...what am I doing wrong here. Why isn't "$latest_CPU_load\n" printing the desired value like $top_output[2]   Any help here?   Thanks, Arijit vgamd127> cat test.pl#!/depot/qsc/VG1.0/bin/perl @top_output = `top -n1 -b -i | head -35`;print "$top_output[2]";$latest_CPU_l

Macros/Class Files in Tex

2006-03-06 Thread Sandeep Deshpande
Dear Monks, I normally receive Tex files where author define their own Macro/Class files and use it in Tex file. One of my applications require standard Tex file. I searched in CPAN for a module, which would scan Macros/Class files and convert the Tex file to standard Tex file (By properly converti