Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^6: pack() returns an unusable string

by syphilis (Archbishop)
on May 27, 2021 at 06:06 UTC ( [id://11133104]=note: print w/replies, xml ) Need Help??


in reply to Re^5: pack() returns an unusable string
in thread pack() returns an unusable string

Just another guess ...

Yes, that works fine on Windows as is:
C:\_32\pscrpt>perl test4.pl >qq(\0\0\0\0\0'\xB0\@)< 000000000027b040
But not when I change $template to "D<" and $nv to 2.4:
C:\_32\pscrpt>perl test4.pl >pack(qq(H*","9a999999999999990040000000000000))< syntax error at -e line 1, at EOF Execution of -e aborted due to compilation errors.
(I can dig into this later if you're getting tired of it.)

Cheers,
Rob

Replies are listed 'Best First'.
Re^7: pack() returns an unusable string
by tybalt89 (Monsignor) on May 27, 2021 at 13:26 UTC

    The Windows command line quoting rules may be so bad that the safest/easiest solution may be to write your generated code to a file and then execute the file.

    That way the double quotes from Data::Dump will not be confused with command line delimiters by the command line processor.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-24 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found