Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 cooling their heels in the Monastery: (9)
As of 2014-12-26 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls