Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: find the element position of $scalar

by    (Sexton)
on Feb 08, 2002 at 08:01 UTC ( [id://144061]=note: print w/replies, xml ) Need Help??


in reply to find the element position of $scalar

for(my $i=0;$i<@array;$i++) { print("$array[$i] is the $i element\n"); }


The white hole.

Replies are listed 'Best First'.
Re: Re: find the element position of $scalar
by Anonymous Monk on Feb 08, 2002 at 08:41 UTC
    Thanks for the quick reply, however I need the results inclosed within the foreach statement as shown above.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://144061]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-18 16:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found