DCPM: perltutopen blues....

Simon Waters Simon at wretched.demon.co.uk
Fri Jul 4 08:47:44 CDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Simon Waters wrote:
>
> If I can master perl syntax <sic> I should have a working prototype by
> tomorrow..

Well it works after a fashion, I have a lot of rough edges to clean up.

First is I would like to use; "script file1 file2 file3" or "script -"
etc etc...

My first attempts failed miserably.... The open is done by
Chess::PGN::Parse, looks remarkably like that bit in the perltutopen,
which starts muttering in old english (dweomer indeed) about how painful
this is.

Can someone explain what to do with "$_" in "while(<>){}" to feed it to
"new Chess::PGN::Parse", previous I had "new Chess::PGN::Parse $pgn"
where '$pgn = "1.pgn"' (1.pgn being a file name), and no "while" loop.
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/BYV+GFXfHI9FVgYRAkmSAKCt6Fir9Ke35XbGcJjrbm/qgNnlWQCffLXt
VVYO1jZw7PCZWz3VCaHdnjs=
=lI7u
-----END PGP SIGNATURE-----



More information about the Devoncornwall-pm mailing list