Util::Any 0.22

6.1/10 (14 أصوات )

الترجمة الالية للوصف



  • مرات التنزيل: 149
  • متطلبات التشغيل:
  • الحجم:
  • الترخيص:
  • الاصدار : 0.22
  • اضيف في: 0000-00-00 00:00:00
  • اخر تحديث: 29/05/2012
  • الموقع علي الانترنت:



استخدام البرامج التي تم تنزيلها من موقعنا يجب أن يكون وفقاً للقوانين في بلدك.لا نوصي باستخدام برامج تنتهك القوانين في بلدك.،اذا كنت تري ان هذا المحتوي لا يتوافق مع حقوق الملكية الفكرية برجاء ابلاغنا بالضغط هنا



Description




For the people like the man who cannot remember uniq function is in whether List::Util or List::MoreUtils. And for the newbie who don't know where useful utilities is.Perl has many modules and they have many utility functions. For example, List::Util, List::MoreUtils, Scalar::Util, Hash::Util, String::Util, Data::Dumper, String::CamelCase etc.We, Perl users, have to memorize modules name and their functions name. Using this module, you don't need to memorize modules name, only memorize kinds of modules and functions name.And this module allows you to create your own utility module, easily. You can create your own module and use this in the same way as Util::Any like the following. use YourUtil -list;SYNOPSIS use Util::Any -list; # you can import any functions of List::Util and List::MoreUtils  print uniq qw/1, 0, 1, 2, 3, 3/;If you want to choose functions use Util::Any -list => ['uniq']; # you can import uniq function only, not import other functions  print uniq qw/1, 0, 1, 2, 3, 3/;If you want to import All kind of utility functions use Util::Any -all;  my $o = bless {}; my %hash = (a => 1, b => 2);  # from Scalar::Util blessed $o;  # from Hash::Util lock_keys %hash;If you want to import functions with prefix(ex. list_, scalar_, hash_) use Util::Any -all, {prefix => 1}; use Util::Any -list, {prefix => 1}; use Util::Any -list => ['uniq', 'min'], {prefix => 1};  print list_uniq qw/1, 0, 1, 2, 3, 3/;If you want to import functions with your own prefix. use Util::Any -list => {-prefix => "l_"}; print l_uniq qw/1, 0, 1, 2, 3, 3/;If you want to import functions as different name. use Util::Any -list => {uniq => {-as => 'listuniq'}}; print listuniq qw/1, 0, 1, 2, 3, 3/;When you use both renaming and your own prefix ? use Util::Any -list => {uniq => {-as => 'listuniq'}, -prefix => "l_"}; print listuniq qw/1, 0, 1, 2, 3, 3/; print l_min qw/1, 0, 1, 2, 3, 3/; # the following is NG print l_uniq qw/1, 0, 1, 2, 3, 3/;Product's homepage Requirements:

· Perl




Moshax.com only provide legal software, please help us keeping pur site legal, if you think this page is violating copyrights please let us know by clicking here Here





التعليقات علي Util::Any 0.22
اضافة تعليق

تعليقات الفيسبوك

تعليقات الموقع