V
vikrant
hi
i have two perl scripts user.pl and user_database.pl
user.pl #script store in /home/bob directory
--------------------------------
#!/usr/bin/perl
print"Enter the user name";
$name = <STDIN>;
print "$name";
----------------------------------
user_database.pl # script store in /home/bob directory
----------------------------------
#!/usr/bin/perl
$user_name = "BOB";
system("perl /home/bob/user.pl");
--------------------------------
# output after running user_database.pl
Enter the user name
It asked me to enter user name. Now,i have to enter the value using my
keyboard but i do not want to do so.
i want that the value of "$user_name" pass to this automatically.
But,i am not able to do so.
Due to some reason i do not want to make use of command line arguments.
Actullay,I am new to perl so please let me know if am missing something.
With Regards
Vikrant
i have two perl scripts user.pl and user_database.pl
user.pl #script store in /home/bob directory
--------------------------------
#!/usr/bin/perl
print"Enter the user name";
$name = <STDIN>;
print "$name";
----------------------------------
user_database.pl # script store in /home/bob directory
----------------------------------
#!/usr/bin/perl
$user_name = "BOB";
system("perl /home/bob/user.pl");
--------------------------------
# output after running user_database.pl
Enter the user name
It asked me to enter user name. Now,i have to enter the value using my
keyboard but i do not want to do so.
i want that the value of "$user_name" pass to this automatically.
But,i am not able to do so.
Due to some reason i do not want to make use of command line arguments.
Actullay,I am new to perl so please let me know if am missing something.
With Regards
Vikrant