Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Substitute in a subparagraph

by blazar (Canon)
on Oct 19, 2008 at 12:32 UTC ( [id://718050]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Substitute in a subparagraph
in thread Substitute in a subparagraph

Ok, So I'm trying to run the following code but it says "Permission Denied" . Any idea why is that?

I personally believe that is sounds like a permission problem. I think it depends on you not having the permission to read some particular file. It's your business, and having nothing to do with the code.

For my understanding, what it does is printing the file with line numbers, then activating "process_para" if matching empty line. It seems to me like the subroutine is processing only one line, isn't it?

I personally believe that your understading is severely flawed. The program does nothing like "printing the file with line numbers" but it has a commented out line which would print the file with the nesting level of parens prepended to lines. It also does nothing like "activating" (whatever that may mean) process_para() is matching an empty line: it calls it on what you call a "paragraph" if the indenting level becomes null, which is the means it adopts to slurp in a "paragraph." What do you think that the

$buf .= $_;

line does?

--
If you can't understand the incipit, then please check the IPB Campaign.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-03-28 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found