Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

(jeffa) Re: How do I read the files in @ARGV one by one

by jeffa (Bishop)
on Mar 19, 2001 at 20:58 UTC ( #65457=note: print w/replies, xml ) Need Help??


in reply to How do I read the files in @ARGV one by one

Personally, I prefer to just open a filehandle:
use IO::File; my %files; foreach my $name (@ARGV) { my $file = IO::File->new($name) or next; # print error message her +e, etc. my @lines = <$file>; $files{$name} = \@lines; $file->close; }

Jeff

R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://65457]
help
Chatterbox?
[james28909]: well, i can stream from ffmpeg to mpc-hc with udp://127.0.0.1: port. guess i just need to grab these packets and slap a rtp header on it and encrypt it with linsodium and send it.
[james28909]: in the rtp header, there is a nonce, i can just make this any number and increment it per packet?

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2017-05-23 05:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?