chart::clicker::data::marker(3pm) [debian man page]
Chart::Clicker::Data::Marker(3pm) User Contributed Perl Documentation Chart::Clicker::Data::Marker(3pm)NAME
Chart::Clicker::Data::Marker - Highlight arbitrary value(s)
VERSION
version 2.83
SYNOPSIS
use Chart::Clicker::Data::Marker;
use Graphics::Color::RGB;
use Graphics::Primitive::Brush;
my $cc = Chart::Clicker->new;
my $mark = Chart::Clicker::Data::Marker->new(
color => Graphics::Color::RGB->new,
brush => Graphics::Primitive::Brush->new,
key => 12,
value => 123,
# Optionally
key2 => 13,
value => 146
);
my $ctx = $cc->get_context('default');
$ctx->add_marker($mark);
$cc->write_output('foo.png');
DESCRIPTION
Used to highlight a particular key, value or range of either.
value2
Set/Get the value2 for this marker. This represents a second point on the range and is used to specify a range.
ATTRIBUTES
brush
Set/Get the brush for this Marker.
color
Set/Get the color for this marker.
inside_color
Set/Get the inside color, which will be used if this range has two keys and two values.
key
Set/Get the key for this marker. This represents a point on the domain.
key2
Set/Get the key2 for this marker. This represents a second point on the domain and is used to specify a range.
value
Set/Get the value for this marker. This represents a point on the range.
AUTHOR
Cory G Watson <gphat@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Cold Hard Code, LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-22 Chart::Clicker::Data::Marker(3pm)
Check Out this Related Man Page
Chart::Clicker::Data::Range(3pm) User Contributed Perl Documentation Chart::Clicker::Data::Range(3pm)NAME
Chart::Clicker::Data::Range - A range of Data
VERSION
version 2.83
SYNOPSIS
use Chart::Clicker::Data::Range;
my $range = Chart::Clicker::Data::Range->new({
lower => 1,
upper => 10
});
DESCRIPTION
Chart::Clicker::Data::Range implements a range of values.
ATTRIBUTES
lower
Set/Get the lower bound for this Range
max
Set/Get the maximum value allowed for this Range. This value should only be set if you want to EXPLICITLY set the upper value.
min
Set/Get the minimum value allowed for this Range. This value should only be set if you want to EXPLICITLY set the lower value.
upper
Set/Get the upper bound for this Range
METHODS
add
Adds the specified range to this one. The lower is reduced to that of the provided one if it is lower, and the upper is ADDED to this
range's upper.
combine
Combine this range with the specified so that this range encompasses the values specified. For example, adding a range with an upper-lower
of 1-10 with one of 5-20 will result in a combined range of 1-20.
contains ($value)
Returns true if supplied value falls within this range (inclusive). Otherwise returns false.
divvy
my $values = $range->divvy(5);
Returns an arrayref of $N - 1 values equally spaced in the range so that it may be divided into $N pieces.
span
Returns the span of this range, or UPPER - LOWER.
AUTHOR
Cory G Watson <gphat@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Cold Hard Code, LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-22 Chart::Clicker::Data::Range(3pm)
Dear All,
Could you help me how to put to the next line if I have pattern below in Perl language.
Data-123 Linux MacOSData-124 windows FreeBSDData-125 OpenBSD NetBSD
I would the output below:
Data-123 Linux MacOS
Data-124 windows FreeBSD
Data-125 OpenBSD NetBSD
... (2 Replies)
Generic Data validator
Data file:
Name,Sal,Dept
ABC,1234,D1
AYX,12356,D2
DHF,345,ED3
123,4565,FGJG
Config File:
Delimiter-","
Rule1-Name-
Rule2-Sal-
Rule3-Dept-*
Can be used to match any regex including date different format and numbers. (3 Replies)
Hi.
Interesting set of brief essays ... cheers, drl
Slashdot
10% sample:
Code Is Design by Ryan Brush
Continuous Learning by Clint Shank
Do Lots of Deliberate Practice by Jon Jagger
Don't Touch that Code! by Cal Evans
Floating-point Numbers Aren't Real by Chuck Allison
Install Me... (1 Reply)