
10 Sep
2009
10 Sep
'09
1:24 p.m.
I was trying to hide Perl code inside Haskell program like the following:
module Main where
import System.Environment (getArgs) import System.Cmd
main = do args <- getArgs rawSystem pl args where pl = "#!/usr/bin/perl\n" ++ "print \"testing ...\n\";"
The program can run, but generates no output at all. Can someone tell me any other tricks which might be missing? (Do we need to use pipe here?) Thanks, Hong