Re: stuck and need some direction

2011-10-14 Thread Leo Susanto
Not sure how to answer this, could you please give more information? > With the sample input data (on the far bottom) the return value should > be CELL 20 in Column 1 with 2 Counts of CDM HEH in the third column. Is not sufficient for me. On Fri, Oct 14, 2011 at 10:08 PM, Chris Stinemetz wrote:

stuck and need some direction

2011-10-14 Thread Chris Stinemetz
Hello, I am trying to create a Perl script that will scan a file using regex to match certain patterns and return uniq names and the total count of each match. With the sample input data (on the far bottom) the return value should be CELL 20 in Column 1 with 2 Counts of CDM HEH in the third colum

Re: How to create randomly generated emails

2011-10-14 Thread Robert Wohlfarth
On Fri, Oct 14, 2011 at 2:51 PM, Ryan Munson wrote: > 1) Randomly generated Mail From and Rcpt to addresses. > 2) Randomly generated subject and body > Check out the Data::Random module. It generates random gibberish and can vary the size (

How to create randomly generated emails

2011-10-14 Thread Ryan Munson
Hi all, I am setting up a test environment where I want to automate randomly generated emails to a new spam analysis system. I am looking at using Perl to create a simple environment where I have the following components: 1) Randomly generated Mail From and Rcpt to addresses. 2) Randomly generat

Re: how to sort two array in perl

2011-10-14 Thread Paul Johnson
On Thu, Oct 13, 2011 at 02:39:52AM -0700, Lemon wrote: > Dear all, > > I want to sort data set like this > > (@a, @b) > 1,21,2 > 7,89=> 2,33 > 54,787,89 > 2,33

Deployment Issues (Was: don't know where to start??? comparing files)

2011-10-14 Thread Weidner, Ron
> Because this uses *my* environment when I run *your* Perl script. > That's broken. > Hardcode the path. Or install it using any of the module tools, which > will replace #!perl with the proper hardcoded local Perl path. I also view this as a deployment problem which has probably been solved m

Re: how to sort two array in perl

2011-10-14 Thread Rob Coops
On Fri, Oct 14, 2011 at 4:32 PM, Shlomi Fish wrote: > On Thu, 13 Oct 2011 02:39:52 -0700 (PDT) > Lemon wrote: > > > Dear all, > > > > I want to sort data set like this > > > > (@a, @b) > > 1,21,2 > > 7,89=> 2,33 > >

Re: how to sort two array in perl

2011-10-14 Thread Shlomi Fish
On Thu, 13 Oct 2011 02:39:52 -0700 (PDT) Lemon wrote: > Dear all, > > I want to sort data set like this > > (@a, @b) > 1,21,2 > 7,89=> 2,33 > 54,787,89 > 2,33

how to sort two array in perl

2011-10-14 Thread Lemon
Dear all, I want to sort data set like this (@a, @b) 1,21,2 7,89=> 2,33 54,787,89 2,33 54,78 I know that linux command sort can do t

Re: don't know where to start??? comparing files

2011-10-14 Thread Shawn H Corey
On 11-10-14 02:08 AM, Randal L. Schwartz wrote: Because this uses*my* environment when I run*your* Perl script. That's broken. Then you should un-break your environment. I can help you if you're using Linux. If you're using Windows, I'm sure there are many on the list who can help. -- Ju