Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Re: Re: Looped around my neck (help with my poor little loops!)

by sulfericacid (Deacon)
on Mar 16, 2003 at 00:00 UTC ( [id://243374]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Looped around my neck (help with my poor little loops!)
in thread Looped around my neck (help with my poor little loops!)

Ok, I'm slow so please forgive me. I've never heard of a loop variable unless you mean any variables contained within the loop itself not being able to be used outside of the loop unless it's a global variable. Or is $loop a built in variable I haven't heard of before? *sigh* If you find the book of all knowledge please feel free to lend it to me, lol.

Thanks for your help.

"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

sulfericacid
  • Comment on Re: Re: Re: Re: Looped around my neck (help with my poor little loops!)

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Looped around my neck (help with my poor little loops!)
by poj (Abbot) on Mar 16, 2003 at 00:13 UTC
    OK, maybe $loop was not a good choice, let's use $n
    for my $n (1..10){ print 'My $n variable is : ',$n,"\n"; }
    or nothing
    for (1..10){ print 'My $_ variable is : ',$_,"\n"; }
    poj
Re: Re: Re: Re: Re: Looped around my neck (help with my poor little loops!)
by pfaut (Priest) on Mar 16, 2003 at 00:07 UTC

    What he was giving you is called pseudocode. Basically, it means stating the solution as a series of steps in more-or-less plain english. This would then be translated by the programmer into source code.

    --- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-20 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found