
phatRraptor
Deleted
Aug 16, 2000, 6:18 AM
Post #1 of 3
(7235 views)
|
Win 98 - Got Book Now Won't Work STDIN
|
Can't Post
|
|
Hi all, I've installed perl on win 98 and well I've bought the books and I can't even get past the first bit of code. The code is : #! /usr/bin/perl -w print "Whats Your Name ?"; $name = <STDIN>; chomp (&name); print ("Hello, &name!\n"); I've opened up a dos prompt and entered: C:\Perl\bin>perl C:\test.pl And this is what i got: Whats Your Name ? I entered Mic and got: Can't modify non-lvalue subroutine call at C:\test.pl line 4, <STDIN> line 1. Any Ideas ?
|