alandev has asked for the wisdom of the Perl Monks concerning the following question:
hi monks
i expected the below code to produce result
0427320060001 39104 20020 190 2but it produces 04273. where i am goin wrong? the code
thanks in advance$a="0427320060001|39104|20020|190|2"; my($num1,$num2,$num3,$num4,$num5)=split(/|/,$a); print $num1; print $num2; print $num3; print $num4; print $num5;
2006-08-29 Retitled by jeffa, as per Monastery guidelines
Original title: 'Split ??'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Problem using | char as delimiter for split
by imp (Priest) on Aug 29, 2006 at 13:13 UTC | |
Re: Problem using | char as delimiter for split
by philcrow (Priest) on Aug 29, 2006 at 13:15 UTC | |
Re: Problem using | char as delimiter for split
by prasadbabu (Prior) on Aug 29, 2006 at 13:14 UTC | |
Re: Problem using | char as delimiter for split
by ForgotPasswordAgain (Vicar) on Aug 29, 2006 at 13:14 UTC | |
Re: Problem using | char as delimiter for split
by dark314 (Sexton) on Aug 29, 2006 at 16:28 UTC |