On 07/24/2006 12:12 PM, Mumia W. wrote:
On 07/24/2006 11:40 AM, Ryan Moszynski wrote:
Is there a way to make my commented 'foreach" line act the same as the
line above it?

[...]
   foreach (0..10,33..43,100..111){
   #foreach ($list4){
[...]

Use the split function to split $list4 on the commas. Read about split: "perldoc -f split"




My brain wasn't switched on when I wrote this. Please ignore.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to