$\ on Win2k and WinXP

J

Jonas

I've got a fairly straightforward Perl script that does a RegEx match
over whole files, i.e. it matches things even if they are on separate
rows. I do this by undefining $\ and it works great on Win2k using
ActivePerl 5.8.4.810. But using the same script and the same version
of ActivePerl on a WinXp Professional machine does not work though,
unless I specify a -0777 command line parameter to the Perl
interpreter. Does anybody know of this problem and if so, is there a
solution?

Regards,
Jonas B
 
J

John Bokma

(e-mail address removed) (Jonas) wrote in @posting.google.com:
I've got a fairly straightforward Perl script that does a RegEx match
over whole files, i.e. it matches things even if they are on separate
rows. I do this by undefining $\ and it works great on Win2k using
ActivePerl 5.8.4.810. But using the same script and the same version
of ActivePerl on a WinXp Professional machine does not work though,
unless I specify a -0777 command line parameter to the Perl
interpreter. Does anybody know of this problem and if so, is there a
solution?

Haven't seen it here IIRC (WinXP, Spanish version). I use File::Slurp most
of the time anyway.
 
J

Jim Keenan

I've got a fairly straightforward Perl script that does a RegEx match
over whole files, i.e. it matches things even if they are on separate
rows. I do this by undefining $\ and it works great on Win2k using
ActivePerl 5.8.4.810. But using the same script and the same version
of ActivePerl on a WinXp Professional machine does not work though,
unless I specify a -0777 command line parameter to the Perl
interpreter. Does anybody know of this problem and if so, is there a
solution?
Could you post a *short* version of a file which works on Win2K but
not on WinXP without the parameter cited?

Also, can you specify what you mean by "does not work"? Does the
pattern patch simply fail? Or is it something more serious, such as a
warning or error?

Thanks.

Jim Keenan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,796
Messages
2,569,645
Members
45,362
Latest member
OrderTrimKetoBoost

Latest Threads

Top