Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

sierpinski's scratchpad

by sierpinski (Hermit)
on Jul 01, 2009 at 17:32 UTC ( #776516=scratchpad: print w/ replies, xml ) Need Help??

File slurping:

#!/usr/bin/perl -w use strict; my $holdTerminator = $/; undef $/; my $buf = <STDIN>; $/ = $holdTerminator; my @lines = split /$holdTerminator/, $buf; $buf = "init"; $buf = join $holdTerminator, @lines; print $buf; print "\n";

My .vimrc from Damian Conway... it's been such a time saver!
set incsearch set ignorecase set smartcase set hlsearch set guifont=-dec-terminal-medium-r-normal-*-*-140-*-*-c-*-iso8859-1 nmap <silent> <BS> :nohlsearch<CR> noremap <Space> <PageDown> set wildmode=list:longest,full function! ToggleComment () let currline = getline(".") if currline =~ '^#' s/^#// else s/^/#/ endif endfunction map <silent> # :call ToggleComment()<CR>j0
Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-07-05 19:33 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (67 votes), past polls