Skip to content

Instantly share code, notes, and snippets.

View LadyAleena's full-sized avatar
🙂
Still getting the hang of using git and GitHub together

Lady Aleena LadyAleena

🙂
Still getting the hang of using git and GitHub together
View GitHub Profile
@tobyink
tobyink / split_last.pl
Created March 3, 2020 08:19
splitting on last occurance
use strict;
use warnings;
use feature 'say';
my $input = 'foo:bar:baz:quux';
my ($fbb, $quux) =
reverse map scalar(reverse($_)),
split /:/, reverse($input), 2;
say $fbb;
@mberends
mberends / SVG test for Darkenwood
Last active December 16, 2015 11:28
Static SVG proof of concept for images to be dynamically generated by Perl 5.
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- SVG definition http://www.w3.org/TR/2011/REC-SVG11-20110816/ -->
<svg width="600" height="450" viewBox="0 0 12 9" preserveAspectRatio="xMaxYMax" version="1.1" xmlns="http://www.w3.org/2000/svg">
<title>Cave 1</title>
<desc>The first cave has three rooms</desc>
<defs>
<pattern id="Grey6" width="0.125" height="0.125" patternUnits="userSpaceOnUse" viewBox="0 0 8 8">
<rect x="0" y="0" width="8" height="8" fill="white" />