check your platform somehow, and make modules for each that expose a common interface,
so you can pull one out and drop in the other with a minimum of fuss.
you could then eval{} the correct one, or put them in separate files and do() the
filename. both of these are somewhat similar to the use ke
it means interpret $rec->{server}[$ii]{attachedNodes} as an array, and 'push' a
reference (pointer) to the %node hash onto it, in the same way that $rec contains a
reference (pointer) to %nodedataHash.
this way, %{$rec->{server}[$ii]{attachedNodes}[0]} is the same as %node was before it
went out
be several
records (because each attached node may have one or more NICs). I need
to be able to select NICs on each attached node. I guess what you have
shown works for it.
I just need help in the form of code I requested - because I couldn't
find elaborate examples.
Thanks
-Original M
you want the nodename to reference the hash of details in the node, like this:
servername => {
longName => "",
nics => [ ... ],
attachedNodes => {
node1name => [
{ ip => data, mask => data },
],
node2name => [
{ ip => data, mask => data },
],
}
}
so that you'll b
is that a user dsn or a system dsn?
you'll need to check what username your cgi script runs as, and whether or not that
account has permissions to access the database, and whether or not that account can
access the DSN. Most web servers start cgi scripts as the user 'nobody' or 'www' or
'www-dat
though I've never used it, I am told that Data::Dumper does this...
check cpan if you don't have it
On Wed, 23 Jun 2004 13:29:44, Jaime Teng <[EMAIL PROTECTED]> wrote:
Hi,
I am trying to write a routine that would print out the value(s) of
the entire variable either it be scalar, hash or array:
###
.com files are fundamentally different to .bat files: a .bat file holds a list of
commands to be executed by the shell/command interpreter. a .com file is a compiled,
native machine code binary program. To convert one into the other, you would have to
write a program that creates a .com file tha
I don't think using hires() in a threaded app is a great idea - ping/hires() calls are
generally implemented by hogging the cpu, which would skew other results. Apart from
that, looks like a perfectly legitimate threaded multi-host pinger :)
each thread should be able to accumulate and aggregate
I think you're best off trying the following regex:
s:qtd:\Q/td\E:gs;
\Q..\E ignore ANY "special" characters between them, with the possible exception of \ itself.
$variables are interpolated before this occurs, so you can validly go s"blah"\Q$something\E"gs;
if you so wish - using the s''' form
as for spidering trees, stacks are always great fun to set up :)
consider:
my @stack;
# first we seed the stack (we only need one item to start!)
while (<>) {
chomp;
push @stack, $_;
}
# now that our stack is seeded, do stuff with it!
while (@stack) {
my $item = pop @stack;
$information_abo
of course it works :)
the web server knows nothing about _how_ to run the file - it just detects if it
passes all the runnability criteria (.cgi extension etc) and passes it to a
pseudo-shell. The script needs only to read the relevant environment variables, and
write valid cgi output to its STD
the below is created as an example and hasn't been tested - you will need to fill in
some code where I've typed things similar to
a_descriptive_function_name_for_what_happens_here();
the perlipc and perlfork manpages have some good examples :)
hope it helps
#!/usr/bin/perl
# perl fork/waitpid exa
http://www.freeprogrammingresources.com/perlide.html
On Tue, 18 May 2004 17:23:54 -0500, Ronald Estes <[EMAIL PROTECTED]> wrote:
Do you know any good Perl Editor software?
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listse
you'd probably be best off writing two modules, one for *n?x, one for windows, and load one or the other at compile time in a BEGIN block, depending on the detected OS...
I've used Win32::ODBC quite successfully on a number of projects, but have never even heard of the odbc interface to WMI of whi
x27;t know what program to give the script t;, and also requires execute permissions for whichever user will be using the scripts (normally 'nobody' if you're doing cgi with apache), neither of which you need to watch for in windows.
-Mike Jackson
On Tue, 4 May 2004 16:51:00 +0900, <
most sites use cookies to trace logins. you'll need to save any cookies that the site sends, and return them to the server with each request.
some sites use a challenge/response authentication which basically involves the site returning a 403 error, and then your agent re-requests, sending the use
yep :)
of course, this would make the encoding mechanism very easy to work out -
a shift left n bits is the same as multiplying by 2^n - so if you <<= 2,
the result will just be 4 times bigger.
if someone with a decent understanding of maths saw this pattern, all they
would have to do is work
'Anton Ganeshalingam'; 'Mike Jackson'
Cc: [EMAIL PROTECTED]
Subject: RE: shifting bits
This combined with this quote from Anton:
I'm trying to avoid people looking at the data without proper access
sounds like he is wanting to do some really simplistic encryption
of his data th
e just a little bit?
-Mike Jackson
On Fri, 27 Feb 2004 11:00:24 -0600, Dirk Bremer (NISC) <[EMAIL PROTECTED]> wrote:
I have used Win32::Process in several scripts. what I can't figure out about
using it is how to create a minimized window. Looking at the constants used
with Win32:Proce
I think this is why $Bill said use the syscall rather than the RE - IPs are also legally expressed as the raw 32 bit number in decimal, or as a subset of the dotted quad only including the elements required to dis-ambiguate depending on the subnet mask (with a subnet mask of 255.0.0.0, 127. is a va
Once you've learned a few fairly different languages, you start to disassociate your method from the language at hand, and start to merely use it as a further layer of abstraction (which is what programming is all about), with the effect that you can use just about any language to do what you want
URI::URL only parses the string and holds it as an object in multiple parts that you can change and get the new compiled string at any time. It does not do actual checking and retrieval of the uri. You want HTTP::Request for actual checking I believe.
On Fri, 09 Jan 2004 19:16:37 +, <[EMAIL PR
you'd be better off searching the mskb or msdn for this - perl merely autoloads all the OLE functions it finds available - it doesn't have them remembered anywhere.
you may find its something like ...->exec('Max(B3:O3)') or call or something odd like that..
remember that perl is case sensitive!
that line will try and find a procedure, variable or property in the package/namespace/pointer $slideobject called (whatever the contents of $p2 are)
you probably mean: my $slideobject = $p2->Slides(1);
$slideobject is undef until you assign something to it - and undef doesn't export/autoload any
sounds like its polling something, creating a race condition.
this is especially relevant on non-file filehandles (sockets, named pipes etc)
possibly the mysql connection? if it sends a request that takes a bit of time, and then polls for a response, this would slow the computer until the request
25 matches
Mail list logo