NAME

Data::Shared::Compiled - A pre-parsed Data::Shared path

SYNOPSIS

use Data::Shared qw(shared_compile sharedc_get);
my $cp = shared_compile('/cache/42');
my $v = sharedc_get($root, $cp);
my @components = @{ $cp->components };

DESCRIPTION

Returned by shared_compile in Data::Shared. Holds the parsed path components once so sharedc_* calls skip re-parsing (and, after the first use against a root, mount resolution and verb dispatch). Mount changes automatically invalidate cached dispatch. The root owns bound dispatch; compiled paths hold weak references to it. Destroying a root or unmounting a backend releases cached native handles.

components

Copy of the path components as an arrayref. Changing it does not change the compiled path.

raw

The original path argument (string or a copy of the original arrayref).

is_array

True if the path was compiled from an arrayref.