strange

G

George Mpouras

use strict;
use warnings;
use feature 'say';

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

Markus Steinborn

George said:
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
 
B

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`.
 
C

Charlton Wilbur

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

George Mpouras

Στις 29/8/2013 18:14, ο/η Bjoern Hoehrmann έγÏαψε:
* George Mpouras wrote in comp.lang.perl.misc:

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

ok but is this explain anything ;
 
G

George Mpouras

Στις 29/8/2013 18:12, ο/η Markus Steinborn έγÏαψε:
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;
 
M

Markus Steinborn

George said:
Στις 29/8/2013 18:12, ο/η 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
 
M

Markus Steinborn

Markus said:
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top