Help for this page

Select Code to Download


  1. or download this
    use Win32::NetAdmin;
    
    ...
       print OUT "$box\n"; # print each $box on a newline
    }
    close OUT;
    
  2. or download this
    while (<IN>) {
        my $line = $_;
        chomp $line;
        # now do something with $line which we got from the file
    }
    
  3. or download this
    @ary = qw(1 2 3 4 5);
    print "first ", $ary[0], "\n";
    @ary = join("\n",@ary);
    print "second", $ary[0], "\n";