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

Re: Traversing through files to read a variable

by NetWallah (Canon)
on Dec 18, 2013 at 06:12 UTC ( #1067595=note: print w/replies, xml ) Need Help??

in reply to Traversing through files to read a variable

        How do I implement this functionality.

Smells like homework.

You can implement this by writing a program, preferably in perl, to OPEN a file, READ the contents, and PARSE it (the split function is useful here).

Once parsed, you can assign the components to variables as necessary. Open additional files based on the information in the variables.

If, after you have read the documentation, and tried to implement this, you have difficulty with some portion of it, please return here , and explain what you have tried, post the code, even if it does not work, explain what you expect it do do, and we will be glad to assist you with it.

             When in doubt, mumble; when in trouble, delegate; when in charge, ponder. -- James H. Boren

  • Comment on Re: Traversing through files to read a variable

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1067595]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2018-06-20 16:17 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.