Thanks for spotting my error; maybe i've done too much test and i become mazed. i've put a comment in the above code pointing to your precious answer.

I'm with you in your second paragraph too. I have not fear of (Perl's) dangerous things (and if you search for mine usage of eval string you can say i hazard..) but i also like to know when something is flammable. The last test (ovverding $1 above) was chocking for me. I'd like at least be adviced by the perlrun man page.

More: the -s inanity respect variables declared with my and the few words dedicated to it let me think of some vestige from the past. Imagine if -s had the ability to modify lexical variables in the main package just after their first declaration: with this ipothetic functionality you would be able to ovveride some default value to test your program in seconds, from command line. Like a totally new environment.

If I remember correctly -s is in the default shebang of some valuable monk here around.

Many question are still open for me as why it not deparse to nothing and why the last behaviour ovverriding or not a readonly variable depending on the qq()

At the end I confess i found not enough information to have my curiosity satisfied and i hoped this post could get some interesting contribution from them who know more.

thanks again for your keen sight and your opinion.

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

In reply to Re^2: about perl -s switch -- usable? evil? unneeded? by Discipulus
in thread about perl -s switch -- usable? evil? unneeded? by Discipulus

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.