The first line of Perl_CGI script, env perl vs perl only, how different?

Джерело:
blogs.perl.org

Дата публікації:
18/03/2023 10:45

Постійна адреса новини:
http://www.vsinovyny.com/9841946

The first line of Perl_CGI script, env perl vs perl only, how different?

 

18/03/2023 10:45 // blogs.perl.org

Hi ! Everyone there ! How are you ?

Until recently I runs all of my Perl scripts as well as Perl_CGI scripts by starting the folowing salutation,

#! /usr/bin/perl -w

The script with this beginning runs well at BASH shell at (/home/mkido/bin) LINUX such as Fedora, Ubuntu, Rocky (Alma-derivative). However, almost right now I noticed some of Perl example around has the different first line as below,

#! /usr/bin/env perl

And it doesn't seem to run at HOME BASH shell (/home/mkido/bin) by simple way of executing it by-itself by the command line. Will someone explain me about what is this [env perl] stuff? Thank you so much.

Mitsuru Kido

 

» Читати повністю

 

« Наступна новина з архіву
Prusament PETG Tungsten 75% for radiation shielding use
  Попередня новина з архіву
Українцям пояснили нюанси отримання відстрочки від мобілізації
»

 

 
© 2026 www.vsinovyny.com