Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Regex Question

by nefigah (Monk)
on Mar 10, 2008 at 16:48 UTC ( #673285=note: print w/replies, xml ) Need Help??


in reply to Re^2: Regex Question
in thread Regex Question

Well, I'm pretty new too, so not sure if this is the best way, but I would use the glob function as was recommended earlier, something like this:
use File::Basename; my $dir = dirname($path); $dir .= '/*'; # Note: if the result of dirname already has the slash, +you only need to add the * while (glob $dir) { # this will loop through files in that directory, putting each filen +ame in $_ }
You can check out perldoc -f glob at the command line or perldoc.org!


I'm a peripheral visionary... I can see into the future, but just way off to the side.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://673285]
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 musing on the Monastery: (6)
As of 2017-05-23 05:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?