Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Data length in strings

by CharlesClarkson (Curate)
on Jul 24, 2001 at 15:48 UTC ( #99292=note: print w/ replies, xml ) Need Help??


in reply to Data length in strings

Instead of using $/, try reading the file.

open my $fh, $file_name or die "Cannot open $file_name $!"; read $fh, my $str, -s $fh;

HTH,
Charles K. Clarkson
Comment on Re: Data length in strings
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2016-04-28 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (437 votes). Check out past polls.