in reply to returns not working
There are a couple of serious problems here.
chomp (my $id = $_);$_ has nothing to do with the arguments to a subroutine. If you're actually passing in a value, use my $id = shift;. I don't know why you're chomping it here.
foreach (<@deployeduid>)You don't need the angle brackets to iterate over a list. I suspect (but don't have time to confirm) that Perl treats this as a glob operation and doesn't give you the values that you expect. If that's the case, your conditional statements will be completely wrong and it may look like return is "not working".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: returns not working
by Markn (Initiate) on Aug 24, 2005 at 16:16 UTC | |
by chromatic (Archbishop) on Aug 24, 2005 at 17:47 UTC |