Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Counting bytes in a Unicode document

by hippo (Archbishop)
on Oct 06, 2024 at 21:10 UTC ( [id://11162071]=note: print w/replies, xml ) Need Help??


in reply to Counting bytes in a Unicode document

The solution is

just to count the bytes, if that's really what you want.

my $bytecount = (stat $file)[7];

🦛

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-11-04 07:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    chatterbot is...






    Results (19 votes). Check out past polls.