strange

Discussion in 'Perl Misc' started by George Mpouras, Aug 29, 2013.

  1. use strict;
    use warnings;
    use feature 'say';

    say "this is ok ". 1 . 5 . 9;
    say "this is weird ". 1.5.9;
     
    George Mpouras, Aug 29, 2013
    #1
    1. Advertising

  2. George Mpouras schrieb:
    > use strict;
    > use warnings;
    > use feature 'say';
    >
    > say "this is ok ". 1 . 5 . 9;
    > say "this is weird ". 1.5.9;


    man perldata, search for "Version strings".


    Greetings from Germany

    Markus Steinborn
     
    Markus Steinborn, Aug 29, 2013
    #2
    1. Advertising

  3. * George Mpouras wrote in comp.lang.perl.misc:
    >use strict;
    >use warnings;
    >use feature 'say';
    >
    >say "this is ok ". 1 . 5 . 9;
    >say "this is weird ". 1.5.9;


    Consider `print join '.' => unpack 'C4', 127.0.0.1` prints `127.0.0.1`.
    --
    Björn Höhrmann · mailto: · http://bjoern.hoehrmann.de
    Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
    25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
     
    Bjoern Hoehrmann, Aug 29, 2013
    #3

  4. >>>>> "GM" == George Mpouras <> writes:


    GM> say "this is ok ". 1 . 5 . 9;
    GM> say "this is weird ". 1.5.9;

    say "do you also expect " . 3 . 2 * 5 . 7;
    say "to equal " . 3.2 * 5.7;



    --
    Charlton Wilbur
     
    Charlton Wilbur, Aug 29, 2013
    #4
  5. Στις 29/8/2013 18:14, ο/η Bjoern Hoehrmann έγÏαψε:
    > * George Mpouras wrote in comp.lang.perl.misc:
    >> use strict;
    >> use warnings;
    >> use feature 'say';
    >>
    >> say "this is ok ". 1 . 5 . 9;
    >> say "this is weird ". 1.5.9;

    >
    > Consider `print join '.' => unpack 'C4', 127.0.0.1` prints `127.0.0.1`.
    >


    ok but is this explain anything ;
     
    George Mpouras, Aug 29, 2013
    #5
  6. Στις 29/8/2013 18:12, ο/η Markus Steinborn έγÏαψε:
    > George Mpouras schrieb:
    >> use strict;
    >> use warnings;
    >> use feature 'say';
    >>
    >> say "this is ok ". 1 . 5 . 9;
    >> say "this is weird ". 1.5.9;

    >
    > man perldata, search for "Version strings".
    >
    >
    > Greetings from Germany
    >
    > Markus Steinborn
    >


    ok then, this does not look like a version : )


    say "this is ok ". 1 . 5 . 9 . 1 . 2 . 3;
    say "this is weird ". 1.5.9.1.2.3;
     
    George Mpouras, Aug 29, 2013
    #6
  7. George Mpouras schrieb:
    > Στις 29/8/2013 18:12, ο/η Markus Steinborn έγÏαψε:
    >> George Mpouras schrieb:
    >>> say "this is ok ". 1 . 5 . 9;
    >>> say "this is weird ". 1.5.9;


    >> man perldata, search for "Version strings".
    >>
    >>
    >> Greetings from Germany
    >>
    >> Markus Steinborn
    >>

    >
    > ok then, this does not look like a version : )


    > say "this is ok ". 1 . 5 . 9 . 1 . 2 . 3;
    > say "this is weird ". 1.5.9.1.2.3;


    For perl it does :)

    Any literal that is made of numbers together with 2 or more dot is a
    version string.


    Greetings

    Markus
     
    Markus Steinborn, Aug 29, 2013
    #7
  8. Markus Steinborn schrieb:
    > Any literal that is made of numbers together with 2 or more dot is a
    > version string.


    Well, not strictly, as 1..2 is not a version string, but I think you got
    the point. There must be numbers between the points, and te points must
    not be at the beginning or the end.
     
    Markus Steinborn, Aug 29, 2013
    #8
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Antonio

    Strange encoding behaviour

    Antonio, Dec 29, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    426
    Antonio
    Dec 29, 2004
  2. Panic
    Replies:
    2
    Views:
    5,238
    Marc Guardiani
    Oct 24, 2003
  3. Kload

    Strange Timing Problem

    Kload, Oct 23, 2003, in forum: VHDL
    Replies:
    2
    Views:
    592
    Kload
    Oct 23, 2003
  4. Akshaye
    Replies:
    1
    Views:
    743
    Hemant Gupta
    Feb 9, 2004
  5. Harvey Twyman
    Replies:
    8
    Views:
    566
    August Derleth
    Oct 25, 2003
Loading...

Share This Page