RE: Simple split question

2003-04-01 Thread jdavis
your project looks nice and usefull. What i am making will utilze graphs & a sql database. I want to graph all packets droped the last-hour, today, this-week, this year. Eventully i would like to establish traffic patterns so i can wright more abstract rules that what iptables can do. If anyone is

RE: Simple split question

2003-04-01 Thread Scott R. Godin
Jdavis wrote: >> >> ($left,$right) = split(/word/, $sentence); >> > > I am trying this but its not working. Im lost :) > could someone take a look... > > This is the beggining of a scrip to make reports > based on droped iptable packets I've done something like this with my tailfilter project

Re: Simple split question

2003-03-31 Thread R. Joseph Newton
jdavis wrote: > I found the error. Sorry to answer my own queston > I was trying > > (@bad,@good) = split(/ /, $string); > > when i needed > > ($bad,$good) = split(/ /, $string); > > thanks for all the help. > > jd If you had chosen to use strict; your compiler would have brought this to your att

RE: Simple split question

2003-03-31 Thread jdavis
I found the error. Sorry to answer my own queston I was trying (@bad,@good) = split(/ /, $string); when i needed ($bad,$good) = split(/ /, $string); thanks for all the help. jd On Mon, 2003-03-31 at 16:18, jdavis wrote: > > > > ($left,$right) = split(/word/, $sentence); > > > > I am trying

RE: Simple split question

2003-03-31 Thread jdavis
> > ($left,$right) = split(/word/, $sentence); > I am trying this but its not working. Im lost :) could someone take a look... This is the beggining of a scrip to make reports based on droped iptable packets thanks jd # #!/usr/bin/perl -w $fi

RE: Simple split question

2003-03-31 Thread Timothy Johnson
; -Original Message- From: jdavis [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:36 PM To: perl Subject: Simple split question Hello, I have a sentince I would like to split on a word and keep everything right of the "split word". I cant seem to get this to work. Coul

RE: Simple split question

2003-03-31 Thread Dan Muey
> Hello, > I have a sentince I would like to split on a word and keep > everything right of the "split word". I cant seem to get this > to work. Could over me some advice. Split returns in list context so :: @stuff = split(/word/, $sentence); Or ($left,$right) = split(/word/, $sentence); A

Simple split question

2003-03-31 Thread jdavis
Hello, I have a sentince I would like to split on a word and keep everything right of the "split word". I cant seem to get this to work. Could over me some advice. Thanks, -- jd [EMAIL PROTECTED] Bad spellers of the world untie! "I can't tell if I have worked all my life or if I have never w

Re: Simple split() question

2001-06-30 Thread Eric Beaudoin
At 01:40 2001.07.01, Jeff 'japhy' Pinyan wrote: >On Jun 30, Sanjeeb Basak said: > >>I want to perform a simple split operation, but can't get the regular expr >>working. Can anybody help me on this? >> >>my $line from a file read is: >>xyz abc 12sd "pqr stz" dfg (delimited by blank char). >> >>I'm

Re: Simple split() question

2001-06-30 Thread Jeff 'japhy' Pinyan
On Jun 30, Sanjeeb Basak said: >I want to perform a simple split operation, but can't get the regular expr >working. Can anybody help me on this? > >my $line from a file read is: >xyz abc 12sd "pqr stz" dfg (delimited by blank char). > >I'm doing >my ($par1, $par2, $par3, $par4, $par5) = split(/

Simple split() question

2001-06-30 Thread Sanjeeb Basak
Hi, I want to perform a simple split operation, but can't get the regular expr working. Can anybody help me on this? my $line from a file read is: xyz abc 12sd "pqr stz" dfg (delimited by blank char). I'm doing my ($par1, $par2, $par3, $par4, $par5) = split(/ /, $line); and I'm getting $par4 =

Re: Simple Split Question

2001-06-29 Thread Abdulaziz Ghuloum
z,,, On Thu, 28 Jun 2001 16:32:28 -0400, Seitz, Scott said: > I'm having trouble with what I think is a very simple split question. > > I've got a line of text something like: > > DimView 1 "All" DimView 2 "Some" DimView 3 "Most" DimVie

RE: Simple Split Question

2001-06-29 Thread Stephen Nelson
ot;([^"]+)"/g; That gives me %foo as (according to Data::Dumper): { 1 => 'All', 2 => 'Some', 3 => 'Most', 4 => 'None' }; > -Original Message- > From: Seitz, Scott [mailto:[EMAIL PROTECT

Re: Simple Split Question

2001-06-29 Thread Paul
--- "Seitz, Scott" <[EMAIL PROTECTED]> wrote: > I'm having trouble with what I think is a very simple split question. > > I've got a line of text something like: > > DimView 1 "All" DimView 2 "Some" DimView 3 "Most" DimV

Re: Simple Split Question

2001-06-29 Thread Brett W. McCoy
On Thu, 28 Jun 2001, Seitz, Scott wrote: > I'm having trouble with what I think is a very simple split question. > > I've got a line of text something like: > > DimView 1 "All" DimView 2 "Some" DimView 3 "Most" DimView 4 "None"

Re: Simple Split Question

2001-06-29 Thread Ken
mumble* Took me a few minutes to figure out why! - Original Message - From: "Seitz, Scott" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 28, 2001 2:32 PM Subject: Simple Split Question > I'm having trouble with what I think is a very simple

Simple Split Question

2001-06-29 Thread Seitz, Scott
I'm having trouble with what I think is a very simple split question. I've got a line of text something like: DimView 1 "All" DimView 2 "Some" DimView 3 "Most" DimView 4 "None" I want a hash with (1, "All", 2, "Some", 3, &qu