develooper Front page | perl.perl5.porters | Postings from January 2017

[perl #130652] fail to return true loading .pm with <cr> EOL

Thread Next
From:
ROYAL
Date:
January 28, 2017 01:15
Subject:
[perl #130652] fail to return true loading .pm with <cr> EOL
Message ID:
rt-4.0.24-4337-1485456347-1999.130652-75-0@perl.org
# New Ticket Created by  ROYAL, Ryan 
# Please include the string:  [perl #130652]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=130652 >


The EOL characters in .pm files needed to be converted from <CR> to <LF> in notepad++ before a true value could be detected by 'use'.

Even though the package ended with a "1;"


Thanks!

=========================== OS ============================
Windows 7 Enterprise
Intel Xeon CPU
32 GB Ram


========================== code in Elem.pm  ============================
package Nastran::Elem::CROD;
use Moose;

has 'id', is => 'ro';
has 'forces', is => 'ro'; #array of arrays [SC, load]

#make 'max_min_case' method specific to CROD elem_IDs
sub max_case {
            my $self = shift;
            my @Sorted = sort { $a->[1] <=> $b->[1] } $self->forces->@*;
            return $Sorted[-1]->[0];
}

1;

========================== version ===========================
Strawberry Perl

PS C:\Home\RRoyal02\MyPrograms\perl\bin> perl5.24.0 -v

This is perl 5, version 24, subversion 0 (v5.24.0) built for MSWin32-x64-multi-thread

Copyright 1987-2016, Larry Wall



<html><head></head><body><font color="black" face="arial" size="2">
The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.
</font>
</body>
</html>


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About