in reply to Join a file piped to a perl script

You may be looking for the diamond operator, <>. see perldoc perlop.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: Lazy Coder
by tadman (Prior) on Apr 13, 2002 at 00:10 UTC
    Lazy in a good way:
    my $input = join ('', <>);
    Or, if you prefer named arguments:
    my $input = open (IN, $ARGV[0]) && join ('', <IN>);
    Don't forget that it's @ARGV and not @argv.

    If you're using this as a CGI application, it virtually, but not entirely, goes without saying:
    use CGI;