Sorry, I meant characters, not letters. Lol

"Did you intend to include the variable @& in that regular expression?"

No, it's not included in there. This regex is looking for something that starts with $ and is followed by one of the characters in the list. And @ and & happen to be in the list. But if a variable starts with @, it won't match. But now that I carefully looked at this part of the code, I noticed that if a character appears to be a variable but is not, then it gets eliminated from the double-quoted string instead of being left alone unchanged. I fixed that.

Today I tried to modify the code to replace variables like $^A, but this caused warnings to appear when running the obfuscated code, because for some reason $^A is treated almost like $a or $b (I have never used these variables ever and don't even understand what they are for) but they apparently don't need to be declared. But if I come up with a new variable such as $XX and start using it in place of $^A, then perl is going to say wait a minute, you didn't declare $XX anywhere in the code, you just started using it.


In reply to Re^2: My Perl Obfuscator by harangzsolt33
in thread My Perl Obfuscator by harangzsolt33

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.