Skip to main content

Hi there,
I have a file X which is untagged.

Now running a Perl script like follows

#! /bin/env perl

use strict;
use warnings;
use 5.010;

my $f = 'X';

-T $f && say "$f";


and the file is tagged as IBM-1047.

I think the Perl text file test operator -T shouldn't change tagging in any way.

Do you agree or do I just overlook anything?


--
Thanks,
Manfred



------------------------------
Manfred Lotz
IBM
------------------------------

Hi there,
I have a file X which is untagged.

Now running a Perl script like follows

#! /bin/env perl

use strict;
use warnings;
use 5.010;

my $f = 'X';

-T $f && say "$f";


and the file is tagged as IBM-1047.

I think the Perl text file test operator -T shouldn't change tagging in any way.

Do you agree or do I just overlook anything?


--
Thanks,
Manfred



------------------------------
Manfred Lotz
IBM
------------------------------
Hi Manfred,

You are correct in regards to our current standard for ports.  However, the Perl port is not yet at our current standards which is why it is only recommended for use in the context of Git.  A re-release of our Perl port with adherence to current standard of code-page conversion behavior is planned for 2021 in the Q3/Q4 time-frame.

Best,
-Peter

------------------------------
Peter Fandel
Rocket Software
------------------------------
Hi Manfred,

You are correct in regards to our current standard for ports.  However, the Perl port is not yet at our current standards which is why it is only recommended for use in the context of Git.  A re-release of our Perl port with adherence to current standard of code-page conversion behavior is planned for 2021 in the Q3/Q4 time-frame.

Best,
-Peter

------------------------------
Peter Fandel
Rocket Software
------------------------------
Hi Peter,
Thanks for the info about your plans regarding Perl. At -T is handy to use I solved my problem by first mounting the file system read-only and then running -T to get a list which are supposed to be text.

All the best,
Manfred

------------------------------
Manfred Lotz
IBM
------------------------------