use Some::Packagewill tell Perl to search for module Package in Some/Package.pm
but
@ISA = ("Some::Package")will not direct Perl correctly to the tree Some/Package.pm
why???? and how to tell Perl that we WANT Some/Package.pm, not Some::Package ???
This blog? Such a mess! Take it easy; however, 'cos we all come from a mess! ^_^
use Some::Package@ISA = ("Some::Package")use Some::Package;package Some::Package;package Package;

A segmentation fault (often shortened to segfault) is a particular error condition that can occur during the operation of computer software. A segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed (for example, attempting to write to a read-only location, or to overwrite part of the operating system). Systems based on processors like the Motorola 68000 tend to refer to these events as address or bus errors.
Segmentation is one approach to memory management and protection in the operating system. It has been superseded by paging for most purposes, but much of the terminology of segmentation is still used, "segmentation fault" being an example. Some operating systems still have segmentation at some logical level although paging is used as the main memory management policy.
On Unix-like operating systems, a process that accesses invalid memory receives the SIGSEGV signal. On Microsoft Windows, a process that accesses invalid memory receives the STATUS_ACCESS_VIOLATION exception, and usually a window asking the user to send an error report to Microsoft appears.
------------
Well, worth learning huh?
That's the error I got when running Matt to align 3 pdb structures. Omg, how can I fix such a mass of c library without no knowledge about the language? Hehe, the final way is nothing other than emailing the author. OMG, I' ve just remember that the author was not at the same institute when he wrote this any longer. OMG, then... what to do next???
exec sẽ không thực hiện được và báo lỗi "cannot execute binary file".
modprobe binfmt_aout
insmod là một file thực thi dạng ELF!). Tuy nhiên, về lý thuyết, có thể bỏ nó ra khỏi kernel cơ sở và đưa nó vào như một LKM.modeprobe binfmt_elfbinfmt_java.modeprobe binfmt_javalinux/drivers/block directory. loop_register_transfer() trong loop module.
get từ module LWP::Simple.use LWP::Simple$content = get($url)get trong LWP::SImple trả về undef nếu có lỗi, nên ta có thể kiểm tra lỗi như sau:use LWP::Simple;unless (defined ($content = get $url) ) { die "could not get $url\n";}new được dùng để tạo một request thực. Tên của trạm trình duyệt ảo được đặt là "Schimozilla/v9.14 Platinum" để webmaster thấy ganh tị khi họ kiểm tra file log. :))#!usr/bin/perl# titlebytes - tim tieu de va kich thuoc cua tai lieuuse warnings;
use LWP:::UserAgent;use HTTP::Request;use HTTP::Response;use URI::Heuristic;
my $raw_url = shift or die "usage: $0 url\n";my $url = URI::Heuristic::uf_urlstr($raw_url);$ = 1; # flush dòng kế tiếpprintf "%s =>\n\t", $url;my $ua = LWP::UserAgent->new();$ua->agent("Schmozilla/v9.14 Platinum"); # đợi đi, thế nào cũng cómy $req = HTTP::Request->new(GET => $url);$req->referer("http://wizard.yellowbrick.oz"); # tung hoả mù cho các chương trình phân tích log
my $response = $ua->request($req);if ( $response->is_error() ) { printf " %\n", $response->status_line;} else {my $count;my $byte;my $content = $response->content();$bytes = length $content;$count = ($content =~ tr/\n/\n/);printf "%s (%d lines,%d bytes)\n", $response->title(), $count, $byte;}
% titlebytes http://www.tpj.com/http://www.tpj.com/ => The Perl Journal (109 lines, 4530 bytes)
lwpcook đi kèm với LWP; tài liệu của các module LWP::UserAgent, HTTP::Request, HTTP::REsponse, URI::Heuristic, công thức 20.2.
| Module | Mục đích |
| LWP::UserAgent | www user agent class |
| LWP::RobotUA | Phát triển các ứng dụng robot |
| LWP::Protocol | giao tiếp với các kiểu giao thức khác nhau |
| LWP::Authen::Basic | Xử lý các trả lời 401 và 407 |
| LWP::MEdiaTypes | cấu hình các kiểu MIME (text/html, ...) |
| LWP::Debug | debug logging module |
| LWP::Simple | giao tiếp với các giao thức đơn giản cho các hàm chung |
| HTTP::Headers | các dạng header MIME/RFC822 |
| HTTP::Message | message dạng HTTP |
| HTTP::Request | HTTP request |
| HTTP::Response | HTTP response |
| HTTP::Deamon | 1 lớp HTTP server |
| HTTP::Status | mã status HTTP |
| HTTP::Date | lấy ngày từ định dạng ngày http |
| HTTP::Negotiate | HTTP content negotiation calculation |
| HTTP::RobotRules | đọc các file robot.txt |
| File::Listing | đọc danh sách liệt kê thư mục |
insmod gắn một LKM vào kernel rmmod gỡ một LKM khỏi kernel depmod xác định sự phụ thuộc lẫn nhau giữa các LKM kerneld chương trình kernel daemon ksyms thể hiện các symbol được kernel xuất ra để các LKM mới sử dụng lsmod liệt kê các LKM đang được load modinfo thể hiện nội dung của phần .modinfo trong file object LKM modprobe gắn hoặc gỡ một LKM hay một bộ các LKM một cách thông minh. Ví dụ, nếu bạn phải load A trước khi load B, modprobe sẽ tự động load A rồi mới load B.modutils, vì vậy hãy chắc chắn bạn đang sử dụng phiên bản mới nhất của modutils khi bạn nâng cấp kernel. modutils luôn luôn tương thích ngược (hoạt động với các kernel cũ hơn). modprobe sẽ khởi động insmod với vị trí cố định trong code là /sbin/insmod. Có thể có những PATH không được modutils sử dụng để tìm kiếm chương trình. Vì vậy hãy chỉnh sửa code của modutils trước khi bạn xây dựng, hoặc bảo đảm bạn sẽ cài đặt chương trình vào các thư mục truyền thống.