Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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?
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 lurking in the Monastery: (16)
As of 2014-09-17 16:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (90 votes), past polls