Perl Interactive mode

Hi All,

Does perl has an interactive mode like other shell?
If there is, can any one show me the equivalent code for the below csh script ? This csh code prompts user for their name and prints the name.

#!/bin/csh

echo -n "Pls enter the your name: "
set name = ($<)

echo "You hav entered $name as your name"

Has an interactive mode, but here you are asking for a script...

#!/usr/bin/perl

print "Pls enter the your name: ";

$name=<>;

chomp $name;

print "You hav entered $name as your name\n";

Hi Porter,

I am currently learning perl so i need some examples.
Thanks for the guidance !! It works