I have

#!/usr/bin/perl

@line = <STDIN>;
print @line;

and when I hit control D, control c, or even control z it just ends the program. Im on a linux machine. Any help?

Control D. Thanks kath.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.