Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://99292]
help
Chatterbox?
[choroba]: erix you there? I have a Pg question...
[erix]: yeah... trepidation
Corion quivers with antici...
[choroba]: if you turn off autocommit and run a prepared statement which fails, the transaction is automatically rolled back, at least in DBD::Pg
[erix]: at least, I'll know where to find the documentation :P
[choroba]: but if there's no prepared statement, there's no rollback
[choroba]: the rollback happens when deallocating the prepared statement in error state.
[choroba]: is this something that Pg enforces, or just a consequence of the Perl implementation?

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-09-19 12:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (220 votes). Check out past polls.

    Notices?