Converting string to HDL path

In reply to dave_59:

Hi

How can i write multiple paths to single path in sv?

for example

i have
toop.rtl.p1
toop.rtl.p2
toop.rtl.p3

.
.
in this way there are many paths
i need to write in one single line
i cant write top.dut.p*
can you please me another way for this

Thanks