in reply to Re: Print Current Program Source Code
in thread Print Current Program Source Code

You can have spaces in filenames on Linux (and Unix) too. And using qq// would avoid all that ugly escaping.

system(qq(cat "$0"));
--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Replies are listed 'Best First'.
Re^3: Print Current Program Source Code
by tinita (Parson) on Aug 18, 2006 at 12:01 UTC
    and
    system('cat', $0);
    would need no quoting at all =)

    update: actually only system(cat => $0); really needs no quotes... isn't that elegant?