Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: I am a beginner for perl

by Khen1950fx (Canon)
on Oct 11, 2011 at 02:25 UTC ( #930729=note: print w/replies, xml ) Need Help??


in reply to I am a beginner for perl

What you were trying to do isn't exactly clear to me, but I did this assuming that it was what you wanted. Pay careful attention to toolic's advice.
#!/usr/bin/perl use strict; use warnings; use Data::Dumper::Concise; my $i; my $j = 1; FOO: for ( $i = 0 ; $i < 10 ; ++$i ) { if ( $i <= 5 ) { do { $j = $j + 2; }; unless ( $j < 10 ) { print Dumper($j); } } }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930729]
help
Chatterbox?
[Tanktalus]: I think I'm "out there" somewhere. I sure don't feel like I'm "here" right now. :S

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-09-22 21:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (269 votes). Check out past polls.

    Notices?