Dinesh Gowda
Dinesh Gowda

Reputation: 1154

Parent process variables inside Child process in Perl

As I know system is a OS call and child.pl will be completly different process but still Is there a way I can access $logger ie AppLogger object inside child.pl without re-creating an connection object each time I want to log.

Upvotes: 0

Views: 211

Answers (1)

ikegami
ikegami

Reputation: 386561

No. system is a wrapper around fork+exec+wait. exec replaces the program executing in the process, including its heap (memory).

Upvotes: 2

Related Questions