Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: CGI::Carp sometimes fails

by Danny (Hermit)
on May 18, 2024 at 19:21 UTC ( [id://11159530]=note: print w/replies, xml ) Need Help??


in reply to Re^2: CGI::Carp sometimes fails
in thread CGI::Carp sometimes fails

contains the contents of a JPEG image file.

I suppose one approach to try and narrow it down would be divide and conquer the contents of $file{'receipt', 'file'}. Split it in half and check both halves. Split the bad half again, etc.

You said you tried printing the contents to a file. I assume that was successful?

EDIT: Or instead of divide and conquer maybe try something like:

my $len = length $str; for(my $i = 1; $i <= $len; $i++) { print substr($str, 0, $i) }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-09-11 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (13 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.