Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: sub running on use statement

by Anonymous Monk
on Dec 02, 2014 at 17:36 UTC ( [id://1109013]=note: print w/replies, xml ) Need Help??


in reply to Re: sub running on use statement
in thread sub running on use statement

Spooky. I do have a source filter running, but I'm nowhere near as knowledgeable in Perl as I will be (someday). So I expect you mean something different, something that I don't yet understand.

The subroutine in question is recursive - it calls itself to fill an array with all the file names in a directory tree.

One of the scalars passed by reference is a filter string, used with match expressions to select files or directories by name.

The spooky part is that one of the directories is a Source. Specifically, SourceFiles. So during initial processing of the data, one of the filters I use to select files is SourceFiles. So, in a way, I do have a Source(Files) filter in my script.

After reading your reply, I looked up Perl Source Filters. No surprise to me, it's a concept I'm not advanced enough in Perl to even try out :)

The confluence of that term and the name of one of my directories was an interesting coincidence.

Or maybe it wasn't a coincidence...perhaps you're not لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ as you claim to be ... ( insert spooky music here )

Replies are listed 'Best First'.
Re^3: sub running on use statement
by GrandFather (Saint) on Dec 02, 2014 at 19:59 UTC

    Actually, don't bother with Perl source filters. They tend to introduce very nasty bugs and unexpected behavior. Interesting for performing some cool party tricks, but generally not recommended for production code.

    Perl is the programming world's equivalent of English

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-23 11:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found