Mega Code Archive

 
Categories / Perl / Language Basics
 

Built-in variables

$_ allows you to write minimalist Perl scripts:  #!/usr/bin/perl -w # This script prints out all # files listed on the command line. # while (<>) {    # From <ARGV>     print;  # Prints $_ }