File: lessp.pl

package info (click to toggle)
libcss-lessp-perl 0.86-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 132 kB
  • sloc: perl: 520; makefile: 6
file content (18 lines) | stat: -rwxr-xr-x 273 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl

use warnings;
use strict;
use CSS::LESSp;

my $file = $ARGV[0];

die "you must specify file" if !$file;

my $buffer;
open(IN, $file);
for ( <IN> ) { $buffer .= $_ };
close(IN);

my @css = CSS::LESSp->parse($buffer);

print join("", @css);