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 having an uproarious good time at the Monastery: (10)
As of 2015-03-30 11:27 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (640 votes), past polls