Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

olivierp's scratchpad

by olivierp (Hermit)
on Jun 21, 2004 at 20:55 UTC ( #368552=scratchpad: print w/ replies, xml ) Need Help??

peacemaker1820 This could help identify what you have in that string:
use Unicode::CharName qw/uname/; use Unicode::UCD qw/charinfo/; my $value = <what you are looking at> my $c; print "Unicode Charname:\tHexValue:\tCharCode\n"; for (split //, $value) { $c = ord($_); print uname($c) .":\t" . charinfo($c)->{code} . ":\t$c\n"; }
graq, I can't help for 1 (don't use CVS, as I do short scripts 95% of the time)
However, here's the simple stuff I have in my .emacs for folding & cperl:
;; I stick my personal libs here: (setq load-path (cons "~/elisp/" load-path)) ;; Some new colors for Font-lock. (require 'font-lock) ;; This thing is great ! (require 'folding) (autoload 'folding-mode "folding" "Folding mode" t) ;; I prefer cperl to the usual perl-mode (autoload 'perl-mode "cperl-mode" "alternate mode for editing Perl pro +grams" t) (setq cperl-hairy t) (setq auto-mode-alist (cons '("\\.[Pp][LlMm]\\'" . cperl-mode) auto-mo +de-alist)) (setq auto-mode-alist (cons '("\\.t\\'" . cperl-mode) auto-mode-alist) +) (setq auto-mode-alist (cons '("\\.pod\\'" . cperl-mode) auto-mode-alis +t))

To mark a block (or whatever) for folding:
# Begin a fold mark: # {{{ A space after the three { is required. sub folded{ print "This is hidden with folding-mode";} # }}} # The "# }}}" ends the fold mark
The above, when folding is active displays this:
# Begin a fold mark: # {{{ A space after the three { is required.... # The "# }}}" ends the fold mark
As for "creating" a new empty file: C-x C-f
Then enter a file name that doesn't exist in the current directory :)
If in doubt, type one or 2 chars, and hit TAB twice ... emacs has auto-completion ! HTH.

PDF::API2 Examples
A new chatterbox flavour
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2014-11-27 23:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (190 votes), past polls