> I assume that you would have to have some way to specify what file system the directory entries in your string are based on?
No, rather a minimal abstraction of a file system.
Kind of a nested data-structure like a AoA or HoH, not the full implementation.
> And what would the inode numbers point to?
nowhere? stat doesn't work on abstracted FH either, hence no "inode"
DB<410> $str = join "\n", a..d
DB<411> open AFH, "<",\$str
DB<412> p "".<AFH>
a
DB<413> p "".<AFH>
b
DB<414> @stat = stat AFH
DB<415> x @stat
empty array
DB<416>
see also stat: "Not all fields are supported on all filesystem types."
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.