Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > strange

Reply
Thread Tools

strange

 
 
George Mpouras
Guest
Posts: n/a
 
      08-29-2013
use strict;
use warnings;
use feature 'say';

say "this is ok ". 1 . 5 . 9;
say "this is weird ". 1.5.9;
 
Reply With Quote
 
 
 
 
Markus Steinborn
Guest
Posts: n/a
 
      08-29-2013
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

 
Reply With Quote
 
 
 
 
Bjoern Hoehrmann
Guest
Posts: n/a
 
      08-29-2013
* 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`.
--
Bjrn Hhrmann (E-Mail Removed) http://bjoern.hoehrmann.de
Am Badedeich 7 Telefon: +49(0)160/4415681 http://www.bjoernsworld.de
25899 Dagebll PGP Pub. KeyID: 0xA4357E78 http://www.websitedev.de/
 
Reply With Quote
 
Charlton Wilbur
Guest
Posts: n/a
 
      08-29-2013

>>>>> "GM" == George Mpouras <(E-Mail Removed)> 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
http://www.velocityreviews.com/forums/(E-Mail Removed)
 
Reply With Quote
 
George Mpouras
Guest
Posts: n/a
 
      08-29-2013
Στις 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 ;
 
Reply With Quote
 
George Mpouras
Guest
Posts: n/a
 
      08-29-2013
Στις 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;
 
Reply With Quote
 
Markus Steinborn
Guest
Posts: n/a
 
      08-29-2013
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

 
Reply With Quote
 
Markus Steinborn
Guest
Posts: n/a
 
      08-29-2013
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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AVG Email Scanner activating at strange times with strange IP addresses dennispublic@hotmail.com Computer Support 1 08-26-2006 04:27 AM
Strange Wireless Network problem Sarah Kingswell Wireless Networking 1 02-15-2005 06:24 PM
strange problem John Wireless Networking 4 02-14-2005 05:40 PM
Strange taskbar behaviour (notification area) Falcon Wireless Networking 0 08-17-2004 09:03 AM
Question About Strange 'C' Code Syntax ( Well strange to me anyway ) Harvey Twyman C Programming 8 10-25-2003 05:54 AM



Advertisments