Re: One step substitution

2008-07-16 Thread John W. Krahn
Brad Baxter wrote: Dermot wrote: I would say say your just being flash but there is something in the idea of having a sub {s/\s+//g; for @_;@_}. You do get re-usability. The data is coming from tab-delimited files and I am trying to parse the data into a sqlite3 db. In the process I'd like to v

Re: One step substitution

2008-07-16 Thread Brad Baxter
Dermot wrote: I would say say your just being flash but there is something in the idea of having a sub {s/\s+//g; for @_;@_}. You do get re-usability. The data is coming from tab-delimited files and I am trying to parse the data into a sqlite3 db. In the process I'd like to validate the data but

Re: One step substitution

2008-07-15 Thread Dermot
2008/7/14 Brad Baxter <[EMAIL PROTECTED]>: > Dermot wrote: >> >> Hi, >> >> I am trying to build a hash(ref) and while doing so I want to remove >> any white space from strings such as "1280 x 1024". So I have >> >> my $record = { >>contributor => $resolution, >> >> }; >> >> Perhaps I

Re: One step substitution

2008-07-14 Thread Brad Baxter
Dermot wrote: Hi, I am trying to build a hash(ref) and while doing so I want to remove any white space from strings such as "1280 x 1024". So I have my $record = { contributor => $resolution, }; Perhaps I am trying to be too clever but I thought I could do my $record = {

Re: One step substitution

2008-07-14 Thread Dermot
2008/7/14 Rob Dixon <[EMAIL PROTECTED]>: > > Dermot wrote: >> >> I am trying to build a hash(ref) and while doing so I want to remove >> any white space from strings such as "1280 x 1024". So I have >> >> my $record = { >> contributor => $resolution, >> >> }; >> >> Perhaps I am try

Re: One step substitution

2008-07-14 Thread Rob Dixon
Dermot wrote: > > I am trying to build a hash(ref) and while doing so I want to remove > any white space from strings such as "1280 x 1024". So I have > > my $record = { > contributor => $resolution, > > }; > > Perhaps I am trying to be too clever but I thought I could do > >

One step substitution

2008-07-14 Thread Dermot
Hi, I am trying to build a hash(ref) and while doing so I want to remove any white space from strings such as "1280 x 1024". So I have my $record = { contributor => $resolution, }; Perhaps I am trying to be too clever but I thought I could do my $record = { contributor =