Re: Splitting number into an array

2002-04-09 Thread John W. Krahn
Daniel Falkenberg wrote: > > Hey all, Hello, > $card_no = "1234567901234567" # 16 digit number > > How would I go about splitting that number into an array? $ perl -le '$card_no = "1234567901234567"; @array = split //, $card_no; print "@array"; @array = $card_no =~ /./g; print "@array"; @arr

Re: Splitting number into an array

2002-04-09 Thread victor
@array = split("", $card_no); Tor. Daniel Falkenberg wrote: > > Hey all, > > $card_no = "1234567901234567" # 16 digit number > > How would I go about splitting that number into an array? > > Regards, > > Dan > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-m

Re: Splitting number into an array

2002-04-09 Thread Tirthankar C. Patnaik
Hi, perl -e '$r="123456789012345"; @Re=split(//,$r); print join ("|",@Re);' HTH, -tir > Ol=10 Apr 2002, Daniel Falkenberg wrote: >t(//,$r); print join ("|",@Re);' > Hey all, > > $card_no = "1234567901234567" # 16 digit number > > How would I go about splitting that number into an

Splitting number into an array

2002-04-09 Thread Daniel Falkenberg
Hey all, $card_no = "1234567901234567" # 16 digit number How would I go about splitting that number into an array? Regards, Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]