Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: **HomeWork** Printing the found input from an array

by CountZero (Bishop)
on Apr 02, 2008 at 20:01 UTC ( #678036=note: print w/ replies, xml ) Need Help??


in reply to Re^2: **HomeWork** Printing the found input from an array
in thread **HomeWork** Printing the found input from an array

which is why it had no value
But it did have a value! But only within the loop and once you left the loop the variable got out scope and did not exist anymore.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James


Comment on Re^3: **HomeWork** Printing the found input from an array

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (12)
As of 2014-09-22 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls