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

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

Thread Previous
From:
James E Keenan via RT
Date:
January 26, 2017 21:52
Subject:
[perl #130652] fail to return true loading .pm with <cr> EOL
Message ID:
rt-4.0.24-22399-1485467531-1712.130652-15-0@perl.org
On Thu, 26 Jan 2017 18:45:47 GMT, ryan.royal@airbus.com wrote:
> 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
> 
> 

Could you attach to this ticket (or attach to your email response) a small file created with Notepad that demonstrates this problem?

That will enable a better diagnosis of the problem.

Thank you very much.


-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=130652

Thread Previous


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