• Perl & FTN

    From Jame Clay@1:2320/100 to All on Mon Jul 4 08:35:02 2011
    Hello Jame!
    10 Jun 2011 11:10, Jame Clay wrote to Maurice Kinal:
    There are Perl FTN related modules available which use such things as the
    pack function to do things like read/write FTN packets. The PERL echo is
    back in distribution and discussions about such things is more than
    welcome there!
    ----- jame.log begins -----
    [N] perl-gcpan/FTN-Database [1] (0.20): FTN SQL Database related operations fo
    Fidonet/FTN related processing.
    [N] perl-gcpan/FTN-JAM [1] (0.04): A Perl extension for handleing JAM messagebases.
    [N] perl-gcpan/FTN-Log [1] (0.06): Perl extension for logging Fidonet Technology Networks (FTN) related processing.
    [N] perl-gcpan/FTN-SRIF [1] (0.05): Perl extension to parse an Fidonet/FTN Standard Request Information File.
    [1] "fidonet" /var/lib/layman/fidonet
    ----- jame.log ends -----
    added your 4 perl modules to my gentoo overlay, gentoo/funtoo users can now install via portage like this:
    layman -a fidonet
    emerge -a FTN-SRIF
    or other modules, thanks for helping more users

    I don't know if he's done the other FTN modules yet...


    Jame


    --- BBBS/LiI v4.01 Flag
    # Origin: Rocasa BBS (1:120/546)
    # Origin: LiveWire BBS -=*=- telnet://livewirebbs.com (1:2320/100)
    * Origin: LiveWire BBS - Synchronet - LiveWireBBS.com (1:2320/100)
  • From Maurice Kinal@1:2320/100 to Jame Clay on Thu Jul 7 15:21:02 2011
    Hey Jame!

    the localtime function itself returns it as a zero based integer

    You're right. I never noticed that before. Everything I have ever used relating to dating has months numbered from 1 to 12. Mind you I haven't
    used Perl all that much and when I have it looked more like a shell
    script. Live and learn eh?

    a zero based index is just as valid as a 1 based index

    I'll have to take your word on that. Everything I have ever used up to
    this point in time has been 1 based relating to months. I'll have to
    check (again) if Posix time in Perl behaves like localtime. According
    to the DateTime module;

    $month = $dt->month; # 1-12

    so it appears that the posix modules in Perl follow the 1 based index
    which explains why I was under the impression it was a universal
    standard given that the DateTime module uses 'time' which is a Perl
    posix function (number of seconds since the epoch) and resembles
    coreutils' date which is what I am most familiar with.

    If you or anyone else do find such issues, please comment on it, preferably in the PERL echo

    :-)

    Turns out that I was wrong. I think I'll stick with bash scripting.

    Life is good,
    Maurice

    --- VIM - Vi IMproved 7.3 on x86_64-core2-linux-gnu
    # Origin: Pointy Stick Society (1:261/38.9)
    # Origin: LiveWire BBS -=*=- telnet://livewirebbs.com (1:2320/100)
    * Origin: LiveWire BBS - Synchronet - LiveWireBBS.com (1:2320/100)
  • From Jame Clay@1:2320/100 to Maurice Kinal on Thu Jul 14 18:13:02 2011
    Hey Jame!
    the localtime function itself returns it as a zero based integer
    You're right. I never noticed that before. Everything I have ever used relating to dating has months numbered from 1 to 12.

    I first noticed it because I found I had to take it into account when I rewrote a shell script using Date information as a Perl script. One of the many things that emphasized that reading the Man pages is a good thing...<g>


    Mind you I haven't used Perl all that much and when I have it
    looked more like a shell script. Live and learn eh?

    Indeed!<g>


    .... According to the DateTime module;
    $month = $dt->month; # 1-12
    so it appears that the posix modules in Perl follow the 1 based index
    which explains why I was under the impression it was a universal
    standard given that the DateTime module uses 'time' which is a Perl
    posix function (number of seconds since the epoch) and resembles
    coreutils' date which is what I am most familiar with.

    So you're mostly coming from the shell scripting side of things?



    Jame


    --- BBBS/LiI v4.01 Flag
    # Origin: Rocasa BBS (1:120/546)
    # Origin: LiveWire BBS -=*=- telnet://livewirebbs.com (1:2320/100)
    * Origin: LiveWire BBS - Synchronet - LiveWireBBS.com (1:2320/100)