You can do it the first way. But after the fork it's no longer the same object, it's a copy, so you can't share info.
non-Perl: Andy Ford
In reply to Re: Fork and WWW::Mechanize: Can agent be shared?
by andyford
in thread Fork and WWW::Mechanize: Can agent be shared?
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |