um the codes are #!/usr.bin/perl
but i use a windows system so it won run
even the book sayes to wite it like that, same with all prog books, whats the code for windows!

That #!/usr/bin/perl notation would tell a UNIX or Unix-like kernel where to find the command interpreter. On a windows system, the # sign would make the interpreter ignore that first line.

In order to get the command to run on a Windows system, you have to do one of two things: One, give the file a .pl extension. If the Perl interpreter is properly registered with Windows, the .pl extension will associate to that program. Or, run it from the command line. If your PATH environment variable. contains the path to the perl executable, you can do it from the command line by typing perl filename.pl

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.