On Thu, 21 Apr 2005 08:31:27 +0300 Offer Kaye <[EMAIL PROTECTED]> wrote:
> On 4/21/05, FreeFall wrote: > > > 3. But there's an even easier way, without having to use map: > > > my @record = split /\s*\|\s*/,$date; > > > > ------>this seems it cant delete spaces of the last element. > > > > Have you tried it? > Sure I did with Paul's example data : $date = 'one | two |three |'; And I tried to change the regx /\s*\|\s*/ to /s*\|?\s*/ and it worked. What do you think? -- Whatever you do will be insignificant,but the important is you do it! It doesn't matter who you are, it's what you do that takes you far! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>