Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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?
[LanX]: oh you want the result line by line?
[jdporter]: ok, LanX, then what?
[jdporter]: It doesn't have to be line by line. Just "my program" "writes" to the external prog and also/then "reads" from it.
LanX open (You are not allowed to open to a command that pipes both in and out, but see IPC::Open2, IPC::Open3, and Bidirectional Communication with Another Process in perlipc for alternatives.)
[jdporter]: IPC::Open2, I guess
[jdporter]: yes, that
[pryrt]: 1nickt: academically, perl -MDevel::Peek -lE 'Dump(42); Dump(42.0)'

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2017-05-24 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?