in reply to Need help to convert short c shell script to perl
This is including a file, which is specified at the command line as your first argument. It is most likely a config file of some sort.source $1
This is printing the contents to two "arrays" to the screen, presumably they are defined in the file being sourced.echo "--0--" echo $lnPARAM[0] echo $lnVAL[0]
This handles contents piped in using a command like:while (<STDIN>) { my $line = $_; # do something with $line }
|
|---|