[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strawberry Perl, Windows7, Powershell and weird data
Its not a perl / powershell issue...the end of line terminator for windoze systems (and DOS) is CRLF . The eol terminator for unix/linux is just CR. If you have a text file that you created on windows, and you moved it to linux, you can tell this with the 'file' command . You can fix this on linux by using 'dos2unix' command.
Sent from my Verizon Wireless BlackBerry
-----Original Message-----
From: "Jason M. Schindler" <jschindler@bucket440.com>
Sender: silug-discuss-owner@silug.org
Date: Tue, 13 Dec 2011 17:33:25
To: silug-discuss@silug.org<silug-discuss@silug.org>
Reply-To: silug-discuss@silug.orgSubject: Re: Strawberry Perl, Windows7, Powershell and weird data
Without seeing your input data and re-creating the issue myself, it is
hard to tell... but I suspect that call to "split" is your issue. Try
changing it to: split(',',$_);
-Jason
> Ok, ignore for a moment the fact that I am using Perl to write a bunch of
> Powershell commands to a file ...
>
> I'm just curious, I seldom use Windows & Perl, why does it add CRLF to
> each character of my data? [See attached screenshot]. It does it whether
> I use Powershell or CMD.exe.
>
>
>
>
> Robert
> http://yesIstillUsePerl.blogspot.com/
> -
> To unsubscribe, send email to majordomo@silug.org with
> "unsubscribe silug-discuss" in the body.
>
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.