in reply to Execute unix command thro' perl in windows

"I am getting the unix command from html form and executing it in perl"

Your code in unix.pl looks as though it's actually running under Windows. If you're expecting your Windows machine to execute a unix command by simply using system this isn't going to work, you need to connect to the unix machine. At this point you need to ask yourself if you really want a text input box where users can provide anything they like and have it run simply by clicking a button. What if text input t1 contained rm -rf?

"It returns me 256. I am new to perl programming and please help me"

You don't tell us which command you run, for all I know 256 is exactly what it's supposed to return. If you don't explain what problems you're having it is not possible to offer a great deal of help.

You have no use strict; use warnings; in your perl code. unix.pl has use CGI ':standard'; yet manually print a header. Since you're new to Perl I suggest you spend time reading and understanding the following: