Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

RE: Pig Latin

by perlmonkey (Hermit)
on Jul 24, 2000 at 03:59 UTC ( #24022=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s/\b(qu|[^aeiou\s]*)(\w+)/$1?$2.$1.ay:$2.way/eg;
  2. or download this
    $_ = <<EOF;
    this is the time for all good me no
    come to the aid of their country.
    ...
    EOF
    s/\b(qu|[^aeiou\s]*)(\w+)/$1?$2.$1.ay:$2.way/eg;
    print $_,"\n";
    
  3. or download this
    isthay isway ethay imetay orfay allway oodgay emay onay
    omecay otay ethay aidway ofway eirthay ountrycay.
    esttay: estquay
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://24022]
help
Chatterbox?
[james28909]: how can i write a while loop on one line (in a script) something like print "this\n" && print "that" && <DATA> && print the other\n" && next if /this matches/ while <DATA>?
[james28909]: i have tried with && and and and have tried to rearrange the functions as well to no avail

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2018-05-20 18:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?