in reply to how to write a subroutine content into a file

The question has already answered but I thought I would contribute something nonetheless: don't use &subroutine notation anymore, it's antiquated perl and can cause unexpected problems. simply "print doit(*FILE)" as in one of the answers would suffice.
  • Comment on Re: how to write a subroutine content into a file

Replies are listed 'Best First'.
Re^2: how to write a subroutine content into a file
by jeffthewookiee (Sexton) on Nov 08, 2011 at 14:52 UTC
    If &subroutine is antiquated Perl, what's the preferred way to reference a sub?