Re: Perl Menu Script

2002-07-26 Thread John W. Krahn
Jay Grant wrote: > > Hi, Hello, > Please forgive this VERY basic perl question .. but I am trying to write a > perl menu script but I can't seem to get the commands to run. I can get a > normal print to work, but not the unix commands (date, who, etc.) Here is > the program ... what am I doing

RE: Perl Menu Script

2002-07-26 Thread David . Wagner
Made minor changes: #!perl -w my $date = localtime(time); while ( 1 ) { print "\nCOMMAND MENU\n"; print "\n a. Current date and time\n"; print "\n b. Users currently logged in\n"; print "\n c. Name of the working directory\n"; print "\n d. Con

Re: Perl Menu Script

2002-07-26 Thread drieux
On Friday, July 26, 2002, at 10:56 , Jay Grant wrote: [..] > what am I doing wrong? > > #!/usr/local/bin/perl > $date = "/usr/bin/date"; the double quotes there make that a 'string' just as my $date = "that really cute one with the big tracks of land"; what you want to do is 'execute'