sub settings_smi_edit { $storeline = $q->param('id'); open(FILE, "info/smileset.txt"); @file = <FILE>; close(FILE);
foreach $i (@file) { ($number, $image, $name, $text, $used) = split(/\|/, $i); if ($number eq $storeline) { @numb = ($number, $image, $name, $text, $used); } } } Ok that I been trying this for a while, can't seem to get it. Ok after I get all taht in a while loop, say I edit @numb and I want to put it back into @file by the $storeline. Get what Im saying -Find it in @file -Take that line -Edit it -Put it back in @file (updated) -by i.d number Also how would i *delete that certain array also Thanks, Andrew __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]