Hello Monks!

I have a serious issue with my Module Text::Autoformat

I tried to reinstall it on my MacOS (10.10.5) original Perl 5.18.2 installation.

In Shell I issued the following command - as suggested in the man -

perl -MText::Autoformat -e'autoformat'

pasting one of the examples of the man:

1. Analyze problem
3. Design algorithm
1. Code solution
5. Test
4. Ship

then ctrl D with the result: the shell is spitting out just the same, what I pasted in.
Right procedure like that?

Than I tried the following script:

#!/usr/bin/perl use strict; use warnings; use Text::Autoformat; $/ = ''; my $formatted = <DATA>; autoformat $formatted; print $formatted; __DATA__ 1. Analyze problem 3. Design algorithm 1. Code solution 5. Test 4. Ship

Right the script? Here too the result: the same what I put in was printed out, without any change.
After this deception, I decided to install perlbrew and the newest Perl-Version. But here too, I have a big issue, which I am not able to solve myself: the installation finishes with a link error:

/Applications/Xcode.app/Contents/Developer/usr/bin/make all PERL_CORE= +1 LIBPERL_A=libperl.a LINKTYPE=dynamic<br> rm -f ../../lib/auto/B/B.bundle<br> env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_looku +p -L/usr/local/lib -fstack-protector B.o -o ../../lib/auto/B/B.bundl +e<br> ...<br> ld: library not found for -lgcc_s.10.4<br> clang: error: linker command failed with exit code 1 (use -v to see in +vocation)

Any help? I would be very gratefull!

marek


In reply to Module Text::Autoformat not working; perlbrew not installing by marek1703

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.