Shaun Bramley wrote:
> 
> I have data that for some god foresaken reason is using two or three methods
> of delimitting names.  Some are delimitted using '//' others with ';'.
> 
> I have tried using @names = split( /(;)|(\/\/)/, $authors[$x]);  however
> this doesn't have the intended result.
> 
> Is this possible?  or am I doing something wrong??


The parentheses are capturing and including the delimiters in the
output.  Use non-capturing parentheses.

@names = split m!(?:;|//)!, $authors[$x];



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to