in reply to Re: (8)Exec format error: when running the script on Linux
in thread (8)Exec format error: when running the script on Linux

That is good reason to adopt template
#!/usr/bin/perl -- #!/usr/bin/perl -w -- #!/usr/bin/perl -Tw -- ...
-- signals end of options