Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Syntax error in using do-until loop: How can I fix it?

by supriyoch_2008 (Scribe)
on Jul 16, 2012 at 10:12 UTC ( #981995=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl-w 
    ## To chop a sentence at intervals of 4-letter and to print results:
    use strict;
    ...
    } until ( my $word=~ /^.*$/); # Line 22  
    exit;
    }
    
  2. or download this
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    C:\Users\xxxxxxx\Desktop>word.pl
    syntax error at C:\Users\xxxxxx\Desktop\word.pl line 22, near ");"
    Execution of C:\Users\xxxxxxxx\Desktop\word.pl aborted due to compilat
    +ion errors.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://981995]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (16)
As of 2014-09-23 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (232 votes), past polls