Re: FAQ 4.63 How do I reset an each() operation part-way through?
- From: Todd <xueweizhong@xxxxxxxxx>
- Date: Sat, 8 Dec 2007 21:35:05 -0800 (PST)
Maybe the below one is the best choice, give it a named function:
#! /bin/perl -l
sub rhi(%) { keys %{shift} }
%hash = (a=>1, b=>2);
print join '=>', each %hash;
rhi %hash;
print join '=>', each %hash;
__END__
a=>1
a=>1
-Todd
.
- Follow-Ups:
- Re: FAQ 4.63 How do I reset an each() operation part-way through?
- From: comp.llang.perl.moderated
- Re: FAQ 4.63 How do I reset an each() operation part-way through?
- References:
- FAQ 4.63 How do I reset an each() operation part-way through?
- From: PerlFAQ Server
- Re: FAQ 4.63 How do I reset an each() operation part-way through?
- From: Todd
- Re: FAQ 4.63 How do I reset an each() operation part-way through?
- From: xhoster
- FAQ 4.63 How do I reset an each() operation part-way through?
- Prev by Date: Re: How to parse out specific data in text files and plugs into the spreadsheet
- Next by Date: Re: FAQ 4.63 How do I reset an each() operation part-way through?
- Previous by thread: Re: FAQ 4.63 How do I reset an each() operation part-way through?
- Next by thread: Re: FAQ 4.63 How do I reset an each() operation part-way through?
- Index(es):
Relevant Pages
|