view release on metacpan or search on metacpan
inc/Module/Install/Repository.pm view on Meta::CPAN
if ($query_repo =~ m!Default Remote: (http://.+)!) {
return $1;
}
}
open my $handle, '<', '_darcs/prefs/repos' or return;
while (<$handle>) {
chomp;
return $_ if m!^http://!;
}
} elsif (-e ".hg") {
view all matches for this distribution
view release on metacpan or search on metacpan
devops/MyConfig.pm view on Meta::CPAN
'pager' => q[/bin/more],
'patch' => q[/usr/bin/patch],
'perl5lib_verbosity' => q[none],
'prefer_external_tar' => q[1],
'prefer_installer' => q[MB],
'prefs_dir' => q[/root/.cpan/prefs],
'prerequisites_policy' => q[follow],
'recommends_policy' => q[1],
'scan_cache' => q[atstart],
'shell' => undef,
'show_unparsable_versions' => q[0],
view all matches for this distribution
view release on metacpan or search on metacpan
lib/WebService/FindMyiPhone/Device.pm view on Meta::CPAN
my ( $self, $sound, $message, $subject ) = @_;
$sound = $sound ? 'true' : 'false';
$subject ||= 'Important Message';
my $post
= sprintf(
'{"clientContext":{"appName":"FindMyiPhone","appVersion":"1.4","buildVersion":"145","deviceUDID":"0000000000000000000000000000000000000000","inactiveTime":5911,"osVersion":"3.2","productType":"iPad1,1","selectedDevice":"%s","shouldLocate":fal...
$self->{id}, $self->{id}, $sound, $subject, $message );
return $self->{_parent}->_post( '/sendMessage', $post )->json;
}
sub remote_lock {
my ( $self, $passcode ) = @_;
my $post
= sprintf(
'{"clientContext":{"appName":"FindMyiPhone","appVersion":"1.4","buildVersion":"145","deviceUDID":"0000000000000000000000000000000000000000","inactiveTime":5911,"osVersion":"3.2","productType":"iPad1,1","selectedDevice":"%s","shouldLocate":fal...
$self->{id}, $self->{id}, $passcode );
return $self->{_parent}->_post( '/remoteLock', $post );
}
sub location {
view all matches for this distribution
view release on metacpan or search on metacpan
ex/reset-account.pl view on Meta::CPAN
use strict;
use warnings;
use WebService::Google::Reader;
# Not sure if preferences should be reset. That would require
# storing the list of prefs and their defaults.
my $reader = WebService::Google::Reader->new(
host => 'www.inoreader.com',
username => $ENV{GOOGLE_USERNAME},
password => $ENV{GOOGLE_PASSWORD},
view all matches for this distribution
view release on metacpan or search on metacpan
lib/WebService/Heartrails/Express.pm view on Meta::CPAN
is => 'rw',
isa => 'ArrayRef',
lazy_build => 1
);
has prefs => (
is => 'rw',
isa => 'ArrayRef',
lazy_build => 1
);
lib/WebService/Heartrails/Express.pm view on Meta::CPAN
my $response = $self->provider->furl->get(AREA_ENDPOINT);
my $content = JSON::decode_json($response->{content});
return $content->{response}->{area};
}
sub _build_prefs{
my $self = shift;
my $response = $self->provider->furl->get(PREF_ENDPOINT);
my $content = JSON::decode_json($response->{content});
return $content->{response}->{prefecture};
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/WebService/MobileMe.pm view on Meta::CPAN
my ($self, %args) = @_;
$args{subject} ||= 'Important Message';
$args{alarm} = $args{alarm} ? 'true' : 'false';
die "Must specify message." unless $args{message};
my $device = $self->device( $args{device} );
my $post_content = sprintf(qq|{"clientContext":{"appName":"FindMyiPhone","appVersion":"$fmi_app_version","buildVersion":"$fmi_build_version","deviceUDID":"0000000000000000000000000000000000000000","inactiveTime":5911,"osVersion":"$fmi_os_version"...
$device->{id}, $device->{id},
$args{alarm}, $args{subject}, $args{message}
);
return from_json( $self->_post( '/sendMessage', $post_content )->content )->{msg};
}
sub remoteLock {
my ($self, $passcode, $devicenum) = @_;
die "Must specify passcode." unless $passcode;
my $device = $self->device( $devicenum );
my $post_content = sprintf(qq|{"clientContext":{"appName":"FindMyiPhone","appVersion":"$fmi_app_version","buildVersion":$fmi_build_version","deviceUDID":"0000000000000000000000000000000000000000","inactiveTime":5911,"osVersion":"$fmi_os_version",...
$device->{id}, $device->{id}, $passcode
);
return from_json( $self->_post( '/remoteLock', $post_content )->content )->{remoteLock};
}
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Repository.pm view on Meta::CPAN
if ($query_repo =~ m!Default Remote: (http://.+)!) {
return $1;
}
}
open my $handle, '<', '_darcs/prefs/repos' or return;
while (<$handle>) {
chomp;
return $_ if m!^http://!;
}
} elsif (-e ".hg") {
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Repository.pm view on Meta::CPAN
if ($query_repo =~ m!Default Remote: (http://.+)!) {
return $1;
}
}
open my $handle, '<', '_darcs/prefs/repos' or return;
while (<$handle>) {
chomp;
return $_ if m!^http://!;
}
} elsif (-e ".hg") {
view all matches for this distribution
view release on metacpan or search on metacpan
kwiki/database/KwikiUserName view on Meta::CPAN
You should strongly consider entering a username in [Preferences http:index.cgi?action=prefs]. This will allow the kwiki to keep track of who changed what page. The username will show up in the RecentChanges page.
The username is saved in a cookie, so it should stay around after you are done with your session. If you happen to be using a public machine, you may wish to clear the username when you are done.
By default Kwiki requires that you create a page about yourself prior to setting your username. So if your name is Eddy Merckz, you should create a page called EddyMerckz, and describe yourself a bit. Then you can go to [Preferences http:index.cgi?ac...
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Win32/Codepage.pm view on Meta::CPAN
print $encoding ? encode($string, $encoding) : $string;
=head1 DESCRIPTION
This module is intended as a companion to Win32::Locale. That module
offers information about user prefs for language and locale. However,
Windows has a separate setting for how files and filenames are encoded
by default, which is specified by the "codepage" (a legacy term from
DOS days). It is possible to be on a computer whose language, date,
currency, etc are set to English, but the file contents and filesystem
names default to SHIFT-JIS (Japanese) encoding.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Wizard/LDAP.pm view on Meta::CPAN
@Wizard::LDAP::ISA = qw(Wizard::State);
$Wizard::LDAP::VERSION = '0.1008';
sub init {
my $self = shift;
my $item = $self->{'prefs'} || die "Missing prefs";
my $admin = { 'ldap-admin-dn' => $item->{'ldap-prefs-adminDN'},
'ldap-admin-password' => $item->{'ldap-prefs-adminPassword'} };
($item, $admin);
}
sub Action_Reset {
my($self, $wiz) = @_;
# Load prefs, if required.
unless ($self->{'prefs'}) {
my $cfg = $Wizard::LDAP::Config::config;
my $file = $cfg->{'ldap-prefs-file'};
$self->{'prefs'} = Wizard::SaveAble->new('file' => $file, 'load' => 1);
}
$self->Store($wiz);
# Return the initial menu.
(['Wizard::Elem::Title', 'value' => 'LDAP Wizard Menu '],
lib/Wizard/LDAP.pm view on Meta::CPAN
'id' => 99]);
}
sub Action_Preferences {
my($self, $wiz) = @_;
my ($prefs, $admin) = $self->init();
# Return a list of input elements.
(['Wizard::Elem::Title', 'value' => 'LDAP Wizard Preferences'],
['Wizard::Elem::Text', 'name' => 'ldap-prefs-serverip',
'value' => $prefs->{'ldap-prefs-serverip'},
'descr' => 'Server DNS name or IP Adress of the LDAP Server'],
['Wizard::Elem::Text', 'name' => 'ldap-prefs-serverport',
'value' => $prefs->{'ldap-prefs-serverport'},
'descr' => 'Server Port of the LDAP Server (default LDAP port on 0)'],
['Wizard::Elem::Text', 'name' => 'ldap-prefs-adminDN',
'value' => $prefs->{'ldap-prefs-adminDN'},
'descr' => 'Distinguished name of the admin object we bind as ' .
'to the server'],
['Wizard::Elem::Text', 'name' => 'ldap-prefs-adminPassword',
'value' => $prefs->{'ldap-prefs-adminPassword'},
'descr' => 'Password of the admin object'],
['Wizard::Elem::Text', 'name' => 'ldap-prefs-nextuid',
'value' => $prefs->{'ldap-prefs-nextuid'} || '500',
'descr' => 'Next UID that will be assigned (increased automatically'],
['Wizard::Elem::Text', 'name' => 'ldap-prefs-gid',
'value' => $prefs->{'ldap-prefs-gid'} || '500',
'descr' => 'Group ID of the group the users will belong to'],
['Wizard::Elem::Text', 'name' => 'ldap-prefs-home',
'value' => $prefs->{'ldap-prefs-home'} || '/home',
'descr' => 'Homedir prefix'],
['Wizard::Elem::Text', 'name' => 'ldap-prefs-userbase',
'value' => $prefs->{'ldap-prefs-userbase'} || 'dc=ispsoft, c=de',
'descr' => 'LDAP base for user administration'],
['Wizard::Elem::Text', 'name' => 'ldap-prefs-netbase',
'value' => $prefs->{'ldap-prefs-netbase'} || 'dc=ispsoft, c=de',
'descr' => 'LDAP base for net administration'],
['Wizard::Elem::Text', 'name' => 'ldap-prefs-domain',
'value' => $prefs->{'ldap-prefs-domain'} || '',
'descr' => 'Default domain for user administration'],
['Wizard::Elem::Text', 'name' => 'ldap-prefs-prefschange',
'value' => $prefs->{'ldap-prefs-prefschange'} || '',
'descr' => 'Shell command after the prefs have been changed'],
['Wizard::Elem::Text', 'name' => 'ldap-prefs-hostchange',
'value' => $prefs->{'ldap-prefs-hostchange'} || '',
'descr' => 'Shell command after Hosts have been changed'],
['Wizard::Elem::Text', 'name' => 'ldap-prefs-netchange',
'value' => $prefs->{'ldap-prefs-netchange'} || '',
'descr' => 'Shell command after Nets have been changed'],
['Wizard::Elem::Text', 'name' => 'ldap-prefs-userchange-new',
'value' => $prefs->{'ldap-prefs-userchange-new'} || '',
'descr' => 'Shell command after an user has been created'],
['Wizard::Elem::Text', 'name' => 'ldap-prefs-userchange-modify',
'value' => $prefs->{'ldap-prefs-userchange-modify'} || '',
'descr' => 'Shell command after an user has been modified'],
['Wizard::Elem::Text', 'name' => 'ldap-prefs-userchange-delete',
'value' => $prefs->{'ldap-prefs-userchange-delete'} || '',
'descr' => 'Shell command after an user has been deleted'],
['Wizard::Elem::Submit', 'name' => 'Action_PreferencesSave',
'value' => 'Save these settings', 'id' => 1],
['Wizard::Elem::Submit', 'name' => 'Action_PreferencesReset',
'value' => 'Reset this form', 'id' => 98],
lib/Wizard/LDAP.pm view on Meta::CPAN
#
# universal method, that is supposed to be used by subclasses
#
sub ItemList {
my($self, $prefs, $admin, $base, $key) = @_;
my $ldap = Net::LDAP->new($prefs->{'ldap-prefs-serverip'},
(($prefs->{'ldap-prefs-serverport'} >0) ?
(port => $prefs->{'ldap-prefs-serverport'}) : ()));
die "Could not create LDAP object, maybe connecting is currently not "
. "possible , probable cause: $@"
unless ref($ldap);
my $dn = $admin->{'ldap-admin-dn'};
lib/Wizard/LDAP.pm view on Meta::CPAN
}
sub Action_PreferencesSave {
my($self, $wiz) = @_;
my ($prefs, $admin) = $self->init();
foreach my $opt ($wiz->param()) {
$prefs->{$opt} = $wiz->param($opt)
if (($opt =~ /^ldap\-prefs/) && (defined($wiz->param($opt))));
}
my $errors = '';
my $ip = $prefs->{'ldap-prefs-serverip'}
or ($errors .= "Missing Server IP or DNS name.\n");
my $adminDN = $prefs->{'ldap-prefs-adminDN'}
or ($errors .= "Missing admin DN.\n");
my $port = $prefs->{'ldap-prefs-serverport'};
my $uid = $prefs->{'ldap-prefs-nextuid'};
my $gid = $prefs->{'ldap-prefs-gid'};
my $home = $prefs->{'ldap-prefs-home'};
if($ip) {
unless(Socket::inet_aton($ip)) {
$errors .= "Unresolveable server DNS name $ip.\n";
}
}
$port = 0 if $port eq '';
$errors .= "Invalid port $port.\n" unless $port =~ /^[\d]*$/;
$errors .= "Invalid UID $uid" unless $uid =~ /^[\d]+$/;
$errors .= "Invalid GID $gid" unless $gid =~ /^[\d]+$/;
if ($home =~ /^((\/[^\/]+)+)\/?$/) {
$prefs->{'ldap-prefs-home'} = $home = $1;
} else {
$errors .= "Invalid home $home";
}
die $errors if $errors;
$prefs->Modified(1);
$self->Store($wiz, 1);
$self->OnChange('prefs');
$self->Action_Reset($wiz);
}
sub Action_PreferencesReset {
my($self, $wiz) = @_;
lib/Wizard/LDAP.pm view on Meta::CPAN
sub OnChange {
my $self = shift; my $topic = shift;
my $mode = shift || '';
my $subst = shift || {};
my($prefs) = $self->init();
my $cmd = $prefs->{'ldap-prefs-' . $topic . 'change' . $mode};
my ($k, $s);
while(($k, $s) = each %$subst) {
$cmd =~ s/\$$k/$s/g;
}
my $file = $cmd; $file =~ s/\ .*//g;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Wizard/Examples/Apache.pm view on Meta::CPAN
@Wizard::Examples::Apache::ISA = qw(Wizard::Examples);
$Wizard::Examples::Apache::VERSION = '0.01';
sub GetKey { 'prefs'; };
sub init {
my $self = shift;
my $prefs = $self->{'prefs'} || die "Missing preferences";
return ($prefs) unless shift;
my $basedir = $prefs->{'apache-prefs-basedir'} || die "Missing basedir";
wantarray ? ($prefs, $basedir) : $prefs;
}
sub getFileDir {
my($self, $wiz) = @_;
my $basedir = $self->{'prefs'}->{'apache-prefs-basedir'};
wantarray ? ($basedir, $basedir) : $basedir;
}
sub Action_Reset {
my($self, $wiz) = @_;
# Load prefs, if required.
unless ($self->{'prefs'}) {
my $cfg = $Wizard::Examples::Apache::Config::config;
my $file = $cfg->{'apache-prefs-file'};
$self->{'prefs'} = Wizard::SaveAble->new('file' => $file, 'load' => 1);
$self->Store($wiz);
}
# Return the initial menu.
(['Wizard::Elem::Title', 'value' => 'Apache Wizard Menu'],
lib/Wizard/Examples/Apache.pm view on Meta::CPAN
}
sub Action_Preferences {
my($self, $wiz) = @_;
my $prefs = $self->init();
# Return a list of input elements.
(['Wizard::Elem::Title', 'value' => 'Apache Wizard Preferences'],
['Wizard::Elem::Text', 'name' => 'apache-prefs-basedir',
'value' => $prefs->{'apache-prefs-basedir'},
'descr' => 'Base Directory of the Apache Wizard'],
['Wizard::Elem::Submit', 'name' => 'Action_PreferencesSave',
'value' => 'Save these settings', 'id' => 1],
['Wizard::Elem::Submit', 'name' => 'Action_PreferencesReset',
'value' => 'Reset this form', 'id' => 98],
lib/Wizard/Examples/Apache.pm view on Meta::CPAN
}
sub Action_PreferencesSave {
my($self, $wiz) = @_;
my $prefs = $self->init();
foreach my $opt (qw(apache-prefs-basedir)) {
$prefs->{$opt} = $wiz->param($opt) if defined($wiz->param($opt));
}
$prefs->Modified(1);
$self->Store($wiz, 1);
$self->Action_Reset($wiz);
}
view all matches for this distribution
view release on metacpan or search on metacpan
tools/perl-test-interpolation.pl.txt view on Meta::CPAN
# V.pm
$config{version} = "$rel.$vers.$subvers";
my $pv = qx[$^X -V];
# lib/perl5/vendor_perl/5.10/CPAN/*
# Distroprefs.pm
my ($ext) = /\.($possible_ext)$/ or redo;
exists $match->{$_[1]} || exists $match->{"not_$_[1]"}
die "Error in Distroprefs pattern qr{$re}\n$@";
return $data =~ /$qr/;
# FirstTime.pm
my(@path) = split /$Config{'path_sep'}/, $ENV{'PATH'};
$CPAN::Frontend->myprint(" <$item>\n");
$CPAN::Frontend->myprint(qq{Trying to overwrite $mby\n});
view all matches for this distribution
view release on metacpan or search on metacpan
lib/XML/Compile/Translate.pm view on Meta::CPAN
if(my $u = $table->{$uri}) # namespace already has a prefix
{ $u->{used} += $used;
return $u->{prefix};
}
my %prefs = map +($_->{prefix} => 1), values %$table;
my $take;
if(defined $prefix && !$prefs{$prefix}) { $take = $prefix }
elsif(!$prefs{''}) { $take = '' }
else
{ # prefix already in use; create a new x\d+ prefix
my $count = 0;
$count++ while exists $prefs{"x$count"};
$take = 'x'.$count;
}
$table->{$uri} = {prefix => $take, uri => $uri, used => $used};
$take;
}
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Repository.pm view on Meta::CPAN
if ($query_repo =~ m!Default Remote: (http://.+)!) {
return $1;
}
}
open my $handle, '<', '_darcs/prefs/repos' or return;
while (<$handle>) {
chomp;
return $_ if m!^http://!;
}
} elsif (-e ".hg") {
view all matches for this distribution
view release on metacpan or search on metacpan
t_data/blogsperl.atom view on Meta::CPAN
<category term="labyrinthframeworkweb" label="labyrinth framework web" scheme="http://www.sixapart.com/ns/types#tag" />
<content type="html" xml:lang="en" xml:base="http://blogs.perl.org/users/barbie/">
<![CDATA[<p>On the 1st January 2011, I released the first Open Source version of <a href="http://labyrinth.missbarbell.co.uk">Labyrinth</a>, both to <a href="http://search.cpan.org/perldoc?Labyrinth">CPAN</a> and <a href="http://github.com/ba...
<p>Labyrinth has been in the making since December 2002, although the true beginnings are from about mid-2001. The codebase has evolved over the years as I've developed more and more websites, and got a better understanding exactly what I would want ...
<p>Labyrinth now is the backend to several Open Source websites, CPAN Testers using it for the <a href="http://www.cpantesters.org/">Reports</a>, <a href="http://blog.cpantesters.org/">Blog</a>, <a href="http://wiki.cpantesters.org/">Wiki</a> and <a ...
<p>As mentioned, I see Labyrinth as a Website Management System. While many similar applications and frameworks provide the scaffolding for a Content Management System, Labyrinth extends that by not only providing the ability to manage your conten...
<p>When writing the fore-runner to Labyrinth, one aspect required was the ability to turn on and off functionality instantly, which meant much of the logic flow was described in the data, not the code. Labyrinth has built on this idea, so that the...
<p>I'm primarily releasing Labyrinth so that I can release all the code that drives the CPAN Testers websites. Giving others the ability to better suggest improvements and contribute. The system allows me the freedom to build websites quickly and ...
<p>More news of plugins and sites being released coming soon.</p>
]]>
view all matches for this distribution
view release on metacpan or search on metacpan
{
return LibXSLT_security_check(XSLT_SECPREF_WRITE_NETWORK, sec, ctxt, value);
}
xsltSecurityPrefsPtr
LibXSLT_init_security_prefs(xsltTransformContextPtr ctxt)
{
xsltSecurityPrefsPtr sec = NULL;
sec = xsltNewSecurityPrefs();
xsltSetSecurityPrefs(sec, XSLT_SECPREF_READ_FILE,
return sec;
}
void
LibXSLT_free_security_prefs(xsltSecurityPrefsPtr sec,
xsltTransformContextPtr ctxt)
{
xsltFreeSecurityPrefs(sec);
}
if (ctxt == NULL) {
croak("Could not create transformation context");
}
ctxt->xinclude = 1;
ctxt->_private = (void *) wrapper;
sec = LibXSLT_init_security_prefs(ctxt);
LibXSLT_init_functions(ctxt, wrapper);
LibXSLT_init_elements(ctxt, wrapper);
if (doc->intSubset != NULL) {
/* Note: libxslt will unlink intSubset, we
if ((real_dom != NULL) && (ctxt->state != XSLT_STATE_OK)) {
/* fatal error */
xmlFreeDoc(real_dom);
real_dom = NULL;
}
LibXSLT_free_security_prefs(sec, ctxt);
xsltFreeTransformContext(ctxt);
/* real_dom = xsltApplyStylesheet(self, doc, xslt_params); */
if (real_dom == NULL) {
if ( real_dom != NULL ) xmlFreeDoc( real_dom );
if (ctxt == NULL) {
croak("Could not create transformation context");
}
ctxt->xinclude = 1;
ctxt->_private = (void *) wrapper;
sec = LibXSLT_init_security_prefs(ctxt);
LibXSLT_init_functions(ctxt, wrapper);
LibXSLT_init_elements(ctxt, wrapper);
real_dom = xsltApplyStylesheetUser(self, source_dom, xslt_params,
NULL, NULL, ctxt);
if ((ctxt->state != XSLT_STATE_OK) && real_dom) {
/* fatal error */
xmlFreeDoc(real_dom);
real_dom = NULL;
}
LibXSLT_free_security_prefs(sec, ctxt);
xsltFreeTransformContext(ctxt);
xmlFreeDoc( source_dom );
}
view all matches for this distribution
view release on metacpan or search on metacpan
t/07-Package_Item.t view on Meta::CPAN
);
basic_checks($xpc);
is( $xpc->find('//nar:packageItem/nar:itemMeta/nar:title'),
$title, 'package title correct' );
ok( $xpc->find('//nar:group[@id="root_group"]/nar:groupRef'),
'slideshow has grouprefs' );
ok( $xpc->find('//nar:group[@id="group_4"]/nar:groupRef'),
'last group has groupref' );
is( $xpc->findvalue('//nar:group[@id="root_group"]/@role'),
'apagroup:slideshow', 'slideshow has correct role' );
is( $xpc->findvalue('//nar:group[@id="root_group"]/@mode'),
view all matches for this distribution
view release on metacpan or search on metacpan
t/data/merlyn1.rss view on Meta::CPAN
<item rdf:about="http://use.perl.org/~merlyn/journal/28298?from=rss">
<title>The 90's called... they want their code back...</title>
<link>http://use.perl.org/~merlyn/journal/28298?from=rss</link>
<description>From <a href="http://groups.google.com/group/comp.infosystems.www.authoring.cgi/browse_thread/thread/752e74dbd910b2a5/6710721867093cc8">a recent comp.infosystems.www.authoring.cgi post</a>:
<blockquote> <div><blockquote> <div><tt>sub ParseForm<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; my ($key, $prefs, $buffer);<br>&nbsp; &nbsp; if ($ENV{'REQUEST_METHOD'} eq 'GET')<br&...
And the horror doesn't stop there, but I wanted to minimize your exposure. This <b>is</b> 2006, right?</description>
<dc:creator>merlyn</dc:creator>
<dc:date>2006-01-10T08:20:17+00:00</dc:date>
<dc:subject>journal</dc:subject>
</item>
view all matches for this distribution
view release on metacpan or search on metacpan
t/data/merlyn1.rss view on Meta::CPAN
<item rdf:about="http://use.perl.org/~merlyn/journal/28298?from=rss">
<title>The 90's called... they want their code back...</title>
<link>http://use.perl.org/~merlyn/journal/28298?from=rss</link>
<description>From <a href="http://groups.google.com/group/comp.infosystems.www.authoring.cgi/browse_thread/thread/752e74dbd910b2a5/6710721867093cc8">a recent comp.infosystems.www.authoring.cgi post</a>:
<blockquote> <div><blockquote> <div><tt>sub ParseForm<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; my ($key, $prefs, $buffer);<br>&nbsp; &nbsp; if ($ENV{'REQUEST_METHOD'} eq 'GET')<br&...
And the horror doesn't stop there, but I wanted to minimize your exposure. This <b>is</b> 2006, right?</description>
<dc:creator>merlyn</dc:creator>
<dc:date>2006-01-10T08:20:17+00:00</dc:date>
<dc:subject>journal</dc:subject>
</item>
view all matches for this distribution
view release on metacpan or search on metacpan
STX/STXPath.pm view on Meta::CPAN
my $ns_nodes = [];
my $pref = $self->{tokens}->[0];
if ($node->{Type} == 1) {
my @prefs = $pref eq '*' ? $self->{STX}->{ns}->get_prefixes
: ($self->{tokens}->[0]);
foreach (@prefs) {
my $p = $_ eq '' ? '#default' : $_;
my $uri = $self->{STX}->{ns}->get_uri($p);
my $node = {Type => 8,
Index => scalar @{$self->{STX}->{Stack}} + 1,
Name => $p,
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Repository.pm view on Meta::CPAN
if ($query_repo =~ m!Default Remote: (http://.+)!) {
return $1;
}
}
open my $handle, '<', '_darcs/prefs/repos' or return;
while (<$handle>) {
chomp;
return $_ if m!^http://!;
}
} elsif (-e ".hg") {
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Repository.pm view on Meta::CPAN
if ($query_repo =~ m!Default Remote: (http://.+)!) {
return $1;
}
}
open my $handle, '<', '_darcs/prefs/repos' or return;
while (<$handle>) {
chomp;
return $_ if m!^http://!;
}
} elsif (-e ".hg") {
view all matches for this distribution
view release on metacpan or search on metacpan
share/js/jslib/rdf/rdfResource.js
share/js/jslib/sound/sound.js
share/js/jslib/utils/date.js
share/js/jslib/utils/dom.js
share/js/jslib/utils/packageInfo.js
share/js/jslib/utils/prefs.js
share/js/jslib/utils/profile.js
share/js/jslib/utils/sax.js
share/js/jslib/utils/system.js
share/js/jslib/utils/uuid.js
share/js/jslib/utils/validate.js
view all matches for this distribution
view release on metacpan or search on metacpan
lib/XUL/Gui.pm view on Meta::CPAN
$code
};
print $boot $$self{dispatch}{'/'}();
}
open my $prefs, '>', $file->('defaults preferences prefs.js') or die $!;
print $prefs qq {pref("toolkit.defaultChromeURI", "chrome://$base/content/boot.xul");};
open my $ini, '>', $app = $file->('application.ini') or die $!;
print $ini split /[\t ]+/ => qq {
[App]
Name=$base
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Xmms.pm view on Meta::CPAN
* which is probably not what you want.
* I\'ll pop up a the preferences window for you to change...
*************************************************************
EOF
sleep 1;
$remote->show_prefs_box;
}
}
#the default C-c binding hosed my tty
sub readline::F_Xmms_interrupt {
lib/Xmms.pm view on Meta::CPAN
}
Xmms::run_cmd($line);
}
my @windows = qw(main pl eq prefs all);
sub Xmms::WindowCmds { \@windows }
my %windows = map { $_,1 } @windows;
sub Xmms::Usage::window {
my $opts = join '|', @windows;
view all matches for this distribution
view release on metacpan or search on metacpan
If enabled permits certain reader errors to loosely match other YAML
module semantics. In detail: Allow B<"control characters are not
allowed"> with while parsing a quoted scalar found unknown escape
character. Note that any error is stored and returned, just not
immediately. This is needed for cpan distroprefs.
However the reader error B<"invalid trailing UTF-8 octet"> and all
other utf8 strictness violations are still fatal.
And if the structure of the YAML document cannot be parsed, i.e. a
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Yote/SQLObjectStore/BaseObj.pm view on Meta::CPAN
score => 'DECIMAL(5,2)',
active => 'BOOLEAN',
avatar => '*MyApp::Image',
tags => '*ARRAY_VARCHAR(50)',
friends => '*ARRAY_*MyApp::User',
prefs => '*HASH<256>_TEXT',
);
There are two categories of column types: B<scalar types> for storing
values directly in the object's table, and B<reference types> for
storing references to other objects or to collection objects (arrays
view all matches for this distribution
view release on metacpan or search on metacpan
lib/ZConf/GUI.pm view on Meta::CPAN
=head2 getPreferred
This gets the preferred for a module.
my @prefs=$zg->getPreferred('ZConf::Runner');
if($zg->{error}){
print "Error!\n";
}
=cut
lib/ZConf/GUI.pm view on Meta::CPAN
=head2 setPreferred
This sets the preferred GUI back ends. The first arguement is the module.
The second is a array reference of the prefences.
my @prefs=('GUI', 'Curses');
#set it for ZConf::BGSet
my $zg->setPreferred('ZConf::BGSet', \@prefs);
=cut
sub setPreferred{
my $self=$_[0];
my $module=$_[1];
my $prefs;
if (defined($_[2])) {
$prefs=$_[2];
}
if ( ! $self->errorblank ){
return undef;
}
lib/ZConf/GUI.pm view on Meta::CPAN
$self->{errorString}='No module specified';
$self->warn;
return undef;
}
if (!defined(@{$prefs}[0])) {
$self->{error}=3;
$self->{errorString}='No prefs specified';
$self->warn;
return undef;
}
my $int=0;
while (defined(@{$prefs}[$int])){
if (@{$prefs}[$int] =~ /:/) {
$self->{error}=4;
$self->{errorString}='"'.@{$prefs}[$int].'" matched /:/';
$self->warn;
return undef;
}
$int++;
}
$module=~s/::/\//g;
my $joinedprefs=join(':', @{$prefs});
$self->{zconf}->setVar('gui', 'modules/'.$module, $joinedprefs);
if($self->{zconf}->error){
$self->{error}=1;
$self->{errorString}='ZConf error listing sets for the config "gui".'.
' ZConf error="'.$self->{zconf}->error.'" '.
'ZConf error string="'.$self->{zconf}->errorString.'"';
lib/ZConf/GUI.pm view on Meta::CPAN
return undef;
}
if (!defined($useX)) {
$self->{error}=3;
$self->{errorString}='No prefs specified';
$self->warn;
return undef;
}
$module=~s/::/\//g;
lib/ZConf/GUI.pm view on Meta::CPAN
$self->{errorString}='No module specified';
$self->warn;
return undef;
}
my @prefs=$self->getPreferred($module);
#checks if X and/or a terminal is available
my $Xavailable=$self->Xavailable();
my $termAvailable=$self->termAvailable();
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/Repository.pm view on Meta::CPAN
if ($query_repo =~ m!Default Remote: (http://.+)!) {
return $1;
}
}
open my $handle, '<', '_darcs/prefs/repos' or return;
while (<$handle>) {
chomp;
return $_ if m!^http://!;
}
} elsif (-e ".hg") {
view all matches for this distribution