I am having trouble with my delete_if block. 

prop_array.delete_if{ |p|
	(p=~/#{attr}/).to_i > 0; }

and i have tried the longer version

prop_array.delete_if{ |p|
	m = (p=~/#{attr}/).to_i
	m > 0; }

and i have tried

prop_array.delete_if{ |p|
	(p=~/#{attr}/) != nil }

It deletes every element, even when m == 0 or m == nil. Any ideas? Thanks,

Zach
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.684 / Virus Database: 446 - Release Date: 5/13/2004