Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8110029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:36:25+00:00 2026-06-06T01:36:25+00:00

As the title – please can anyone explain how the next scripts works this

  • 0

As the title – please can anyone explain how the next scripts works

this prints the text: “Perl guys are smart”

''=~('(?{'.('])@@^{'^'-[).*[').'"'.('-[)@{:__({:)[{(-:)^}'^'}>[,[]*&[[[[>[[@[[*_').',$/})')

this prints only “b”

use strict;
use warnings;
''=~('(?{'.('_/).+{'^'/]@@_[').'"'.('=^'^'_|').',$/})')

the perl -MO=Deparse shows only this:

use warnings;
use strict 'refs';
'' =~ m[(?{print "b",$/})];

but havent any idea why… ;(

What is the recommended way decomposing like scripts? How to start?

so, tried this:

'' =~
(
        '(?{'
        .
        (
                '])@@^{' ^ '-[).*['
        )
        .
        '"'
        .
        (
                 '-[)@{:__({:)[{(-:)^}' ^ '}>[,[]*&[[[[>[[@[[*_'
        )
        .
        ',$/})'
)

several parts are concatenated by .. And the result of the bitwise ^ probably gives the text parts. The:

perl -e "print '-[)@{:__({:)[{(-:)^}' ^ '}>[,[]*&[[[[>[[@[[*_'"

prints “Perl guys are smart” and the first ^ generating “print”.

But when, i rewrite it to:

'' =~
(
    '(?{'
    .
    (
        'print'
    )
    .
    '"'
    .
    (
         'Perl guys are smart'
    )
    .
    ',$/})'
)

My perl told me:

panic: top_env

Strange, first time i saw like error message…

Thats mean: it isn’t allowed replace the 'str1' ^ 'str2' with the result, (don’t understand why) and why the perl prints the panic message?

my perl:

This is perl 5, version 12, subversion 4 (v5.12.4) built for darwin-multi-2level

Ps: examples are generated here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T01:36:27+00:00Added an answer on June 6, 2026 at 1:36 am

    In the line

    .('_/).+{' ^ '/]@@_[
    

    when you evaluate ']' ^ '-', the result will be the letter p. ^ is a bitwise string operation, so after that we follow letter by letter to get result string.

    Check my script, it works like your example. I hope it will help you.

    use v5.14;
    
    # actually we obfuscated print and your word + "
    # it looks like that (print).'"'.(yor_word")
    my $print  = 'print';
    my $string = 'special for stackoverflow by fxzuz"';
    
    my $left  = get_obfuscated($print);
    my $right = get_obfuscated($string);
    
    # prepare result regexp
    my $result = "'' =~ ('(?{'.($left).'\"'.($right).',\$/})');";
    
    say 'result obfuscated ' .  $result;
    eval $result;
    
    sub get_obfuscated {
    
        my $string = shift;
        my @letters = split //, $string;
    
        # all symbols like :,&? etc (exclude ' and \)
        # we use them for obfuscation
        my @array = (32..38, 40..47, 58..64, 91, 93..95, 123..126);
    
        my $left_str = '';
        my $right_str = '';
    
        # obfuscated letter by letter
        for my $letter (@letters) {
    
            my @result;
            # get right xor letters
            for my $symbol (@array) {
    
                # prepare xor results
               my $result = ord $letter ^ $symbol;
               push @result, { left => $result, right => $symbol } if $result ~~ @array;
            }
    
            my $rand_elem = $result[rand $#result];
            $left_str  .= chr $rand_elem->{left};
            $right_str .= chr $rand_elem->{right};
        }
    
        my $obfuscated = "'$left_str' ^ '$right_str'";
        say "$string => $obfuscated";
    
        return $obfuscated;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Title is descriptive, what is wrong with this code and why? <script type=text/javascript> $(document).ready(function()
My NSXMLParser breaks on this string: <title>AAA &#8211; BCDEFGQWERTYUIO</title> I parsed it in this
Title is the entire question. Can someone give me a reason why this happens?
Title may be a little confusing, so let me explain. I am trying to
Title said it all. im just wandering if there something i can use in
Title borrowed from this question , of which this one is not a duplicate.
Title should explain it all. I have a program whose stdout takes a lot
Title is basic enough, why can't I: Dictionary<string, string> dic = new Dictionary<string, string>();
Title pretty much sums it up. I just found out about this function and
Title doesn't actually reflect what I'm trying to explain. Is it possible to achieve

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.