home *** CD-ROM | disk | FTP | other *** search
/ ftp.cse.unsw.edu.au / 2014.06.ftp.cse.unsw.edu.au.tar / ftp.cse.unsw.edu.au / pub / doc / languages / perl / nutshell / ch5 / interp.eg < prev    next >
Encoding:
Text File  |  1992-10-18  |  118 b   |  6 lines

  1. while (<STDIN>) {
  2.     # $_=... not needed because the data is already in $_
  3.     s/"/\\"/g;
  4.     print eval qq/"$_"/;
  5. }
  6.