3 ms·
There's no need to set it with a file extension. You can set the #! or put use v8.
by toast0 6y ago
There's no need to set it with a file extension. You can set the #! or put use v8.
- yellowapple 6y agoRight, but that's extra boilerplate. Granted, it's only one line (two if you do both), but still. Reducing boilerplate is already an explicit goal for v8, so it seems like it's worthwhile to be consistent on that front. Also, not all Perl files have a shebang, and not all files are invoked in a way that'd make a shebang useful. Modules are the obvious example here. In any case, nothing precluding all three approaches from being supported in case Perl hackers really prefer a "use v8;" over changing the filename or vice versa.