Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^3: OS agnostic C&P CLI snippets with -E

by Anonymous Monk
on Oct 19, 2021 at 10:24 UTC ( #11137717=note: print w/replies, xml ) Need Help??

in reply to Re^2: OS agnostic C&P CLI snippets with -E
in thread OS agnostic C&P CLI snippets with -E

bliako: how does that help?

puzzling. how does it not help?

question was portable oneliners, Is there a shorter way to do this?

yeah, enjoy your one liner, then let deparse write the portability version you share

files are good

  • Comment on Re^3: OS agnostic C&P CLI snippets with -E

Replies are listed 'Best First'.
Re^4: OS agnostic C&P CLI snippets with -E (drivel)
by LanX (Sage) on Oct 19, 2021 at 12:12 UTC
    Nobody needs Deparse here

    $ perl -e'print "drivel";#some code' drivel



    $ perl print "drivel";#some code __END__ drivel

    and CMD

    D:\tmp\pm>perl print "drivel";#some code __END__ drivel D:\tmp\pm>


    And using Deparse to cover -E is producing a ridiculous amount of code

    $ perl -MO=Deparse -E'print "drivel";#some code' use feature 'current_sub', 'evalbytes', 'fc', 'postderef_qq', 'say', ' +state', 'switch', 'unicode_strings', 'unicode_eval'; print 'drivel'; -e syntax OK

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137717]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2022-01-29 14:37 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (74 votes). Check out past polls.