in reply to using join with a print ref statement
print ref $searchresult ? "Located Part Number: @{[join ':', @$searchresult ]}\n" : "Your Part Number ($part) Rev ($rev) could not be found....\n"; # or local $" = ':'; print ref $searchresult ? "Located Part Number: @{ $searchresult }\n" : "Your Part Number ($part) Rev ($rev) could not be found....\n";
-- Hofmator
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: using join with a print ref statement
by Bismark (Scribe) on Jan 20, 2003 at 17:56 UTC |