Bay Cao và Bay Xa – Fly High and Fly Far

May 25, 2009

perl -MCPAN -e shell TIPs, TRICKs

Filed under: Other, Perl, Programming — doqkhanh @ 10:06 AM

1. With history
Using   perl -MCPAN -e shell -xdg
Instead of perl -MCPAN -e shell

You can using up/down arrow key to get local history.

2. When you get this message
CPAN.pm panic
Simply delete your lock file and reload cpan to continue without any error. Thanks Mr Bang for this handy tip.

3. You can set ftp site to empty for better support in case your wget cannot get file with cpan shell
Try to locate Config.pm in cpan directory
# locate CPAN/Config.pm
And edit it with vim, vi or any editor like that and make sure your urllist is empty, it is empty but it will working like a champ.
'urllist' => [],

4. Update cpan
# Backup your current module list
perl -MCPAN -e autobundle
# That will create a file with a name like
## /root/.cpan/Bundle/Snapshot_yyyy_mm_dd_00.pm
# Enter CPAN
perl -MCPAN -e shell -xdg
# Update
install Bundle::CPAN
# Reload cpan
reload cpan

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.