Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

windows - What is the recommended way to package perl scripts for CPAN (and CorporatePAN)? -


recently looked @ module on cpan comes script installed made me wonder. recommended way include script in package should end on public cpan , if there different recommendation packages released on in-house cpan server?

the script starts this:

#!/usr/bin/perl  eval 'exec /usr/bin/perl  -s $0 ${1+"$@"}'   if 0; # not running under shell 

two questions

do understand correctly eval part unnecessary? embedded cpan client during installation , different when installing on windows.

what recommended sh-bang line?

#!/usr/bin/env perl 

instead of above?

just use

#!/usr/bin/perl 

(or, optionally, whatever path perl on development machine.)

when module::build or makemaker installs script, change #! line match perl installing module. add "eval exec" lines, except under windows, create .bat file instead. (the cpan client has nothing this.)

if use

#!/usr/bin/env perl 

then installers won't realize that's perl script, , not modify #! line.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -