darienhuss has asked for the wisdom of the Perl Monks concerning the following question:
this leaves me with the value 00555500. I need to split all these characters/numbers into seperate variables or into a list. I tried doing: @list = split(//,$dsfe_mask); but it doesn't work... Is there a way to do this? This value is a hexadecimal mask that will eventually tell me which test cases I need to be testing for (thats an over simplification but I don't think you need to know exactly what I'm doing to be able to help me)$dsfe_mask =~ s/\n|STRING: //g; $dsfe_mask =~ s/"+//g; $dsfe_mask =~ s/\D+//g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: split number into seperate numbers and store in an array or seperate variables
by dharanivasan (Scribe) on Dec 18, 2008 at 06:22 UTC | |
|
Re: split number into seperate numbers and store in an array or seperate variables
by ccn (Vicar) on Dec 17, 2008 at 22:33 UTC | |
|
Re: split number into seperate numbers and store in an array or seperate variables
by BrowserUk (Patriarch) on Dec 17, 2008 at 23:03 UTC | |
|
Re: split number into separate numbers and store in an array or separate variables
by toolic (Bishop) on Dec 17, 2008 at 22:38 UTC | |
|
Re: split number into seperate numbers and store in an array or seperate variables
by darienhuss (Initiate) on Dec 18, 2008 at 15:06 UTC |