Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use the perl debugger to dump all the data in a string variable

Status
Not open for further replies.

Dino_1000

Programmer
Dec 23, 2022
1
0
0
US
Hi,

I need to dump all the data bytes contained in a string variable, from the perl debugger. I can use the "p" or the "x", but I see spaces and I think amoung the spaces there may be a graphic character. So I'd just like to dump all the memory. Can someone please tell me how to do this?

I tried these:

DB<37> p $line
Branch: release/pr_1.7.0

DB<38> x $line
0 "Branch: release/pr_1.7.0\cM"
DB<39>

I would like to print the ascii values for the contents of $line from the perl debugger?

Thanks,
Dino
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top