Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Foreach Loops

by sh1tn (Priest)
on Mar 15, 2005 at 20:00 UTC ( #439742=note: print w/replies, xml ) Need Help??


in reply to Re^2: Foreach Loops
in thread Foreach Loops

That's why I said "Not so clear":
for(1..@arr){ print $arr[--$_], $_, $/ }


Replies are listed 'Best First'.
Re^4: Foreach Loops
by samtregar (Abbot) on Mar 15, 2005 at 20:44 UTC
    Actually you said "not so clean" not "not so clear" and your code didn't start from 1.

    -sam

      My mistake - forgotten s/.$/n/ after "not so clear"


Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://439742]
help
Chatterbox?
LanX ... on monster.com
[r@j]: # list all of a user's processes my $process_java = $lConfig_Hash{$MFT _CMD."_java"}; my $Process = find_proc(user=>' raj', detail=>1) || die "Sorry, $Process_java is not running" ; if(proc_exists( name=>'$Process_ja va')){
[LanX]: see SOPW
[r@j]: guys i am begginer on perl and above code is not working on window environment.kindly suggest which support on both window and Unix environment
[holli]: And I kindly suggest you post a question, instead of spamming the chetterbox

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (14)
As of 2017-10-23 15:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (280 votes). Check out past polls.

    Notices?