Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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 chanting in the Monastery: (8)
As of 2014-12-28 21:17 GMT
Find Nodes?
    Voting Booth?

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

    Results (183 votes), past polls