R
Rita
Is there any difference to write Perl script on windows or on Linux?
Rita said:Is there any difference to write Perl script on windows or on Linux?
Jürgen Exner said:Specifically for writing? Well, yes.
The set of tools that typically come with each OS are different, e.g.
Notepad versus emacs.
Rita said:No I mean Programming code...because same programm i am running on
windows system it is working but on linux system it is not ,that's why?
Rita said:Is there any difference to write Perl script on windows or on Linux?
Rita said:[...] same programm i am running on
windows system it is working but on linux system it is not ,that's
why?
Paul said:I cannot for the life of me understand how you expect anyone to answer
your questions without this information.
Bego said:I can understand your excitement, but even without any further
information I (a perl-newbie!) thought about two differences:
* the shebang: #!perl vers #!/usr/bin/perl.
AFAIK you could write #!MickeyMouse with Perl running under Windows?
* system(), as e.g. a "system(ls)" will list the directory contents
on a unix-like system, but won't work on a windows system.
Bernard El-Hagin said:Perhaps this is because Windows doesn't have an "ls" command? Try it
with "dir".
Bernard El-Hagin said:[...]
Works just fine with ls on my XP Pro machine (having cygwin
installed)...
: )
Smartass. ;-)
Rita said:Is there any difference to write Perl script on windows or on Linux?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.