[Haskell-beginners] hide Perl code inside Haskell program

Khudyakov Alexey alexey.skladnoy at gmail.com
Sat Sep 12 04:19:42 EDT 2009


В сообщении от Суббота 12 сентября 2009 01:18:01 автор Hong Yang написал:
> This way works fine if the program has no arguments. What if I have to pass
> arguments such as "-i input -o output"?
> 
You can just run perl and feed you program to perl's stdin. With this you can 
add all flags you like

Shell
$ echo 'print "fff\n"; $i=1; print "$i\n";' | perl
fff
1


More information about the Beginners mailing list