dcsimg
Linux Today: Linux News On Internet Time.




More on LinuxToday


Linuxcare: Dear Lina: Pulling the Perl From the Linux Shell

Sep 16, 1999, 15:08 (6 Talkback[s])
(Other stories by Lina)

WEBINAR:
On-Demand

Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame


[ Thanks to Matthew Cunningham for this link. ]

"My friend runs FreeBSD and I run Linux. Despite this severe ideological difference, we actually do get along fine. I recently started writing Perl scripts as a hobby, and my friend gave me a sample script to get started. Here it is:

#!/usr/local/bin/perl -w

print "what is your name? ";
$NAME = ;
print "\nHello, $NAME\n";

"The name of the file is hello.pl - and I even made it executable with chmod 777 hello.pl. But when I type ./hello.pl I get this error: ./hello.pl: Command not found. No matter what I do, I can't get this thing working. Can you help me?"

Complete Story