Open-source Languages & Tools for z/OS

 View Only
  • 1.  Untagged file get tagged but shouldn't

    Posted 11-25-2020 09:59

    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
    ------------------------------


  • 2.  RE: Untagged file get tagged but shouldn't

    Posted 11-30-2020 11:52
    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
    ------------------------------



  • 3.  RE: Untagged file get tagged but shouldn't

    Posted 12-01-2020 09:11
    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
    ------------------------------