RE: building a "time range" structure

2001-03-15 Thread Chuck . Hirstius
>Hi Chuck, > >Here's a quick hack that seems to work. I'm sure there are better ways of >doing it though. > >Anyway, hope this helps. > >-Jesse > > > >my %timeranges = ( >1 => { #network number >4 => { '_1159' => 4, '1200_2400' => 6 },#day 4 = >Thursday >

RE: mkdir

2001-03-15 Thread Ireland, Kevin
Christopher, You need to encase the parms in (). The following statements are equivalent due to the default mask that is applied. mkdir ("dirname"); mkdir ("dirname", "0777"); Kevin Ireland Sr. Systems Engineer Gentiva Health Services (913) 814-2169 [EMAIL PROTECTED] -Original Me

How to remove a hash ref from an Array? (Win32::Perms)

2001-03-15 Thread Michael Marziani
I am using Win32::Perms and when you do a "Dump" of permissions of an object (file/dir/share/etc), it populates a @List with hash references, each of the hash references being an ACE of some type. Ok, I have written a program to look through NT directories and compare permissions, showing a direc

Re: style

2001-03-15 Thread Ron Grabowski
> Is there a more eloquent way to append .txt to a (string) variable please? > $file=$invar1; > $file.=".txt"; $file = "$invar.txt"; ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

strict question

2001-03-15 Thread Purcell, Scott
Hello, I am using strict, and I am also using some references. My code has the following declared at the top of my code. use CGI qw/:standard/; use CGI::Carp qw(fatalsToBrowser); use IO::Socket; use strict; use vars qw($filename $mediabankdir $message @squawk %byName $productName); ... later on

mkdir

2001-03-15 Thread Christopher Hahn
Hello all, I got a compaint from mkdir that I didn't have sufficient arguments, when I thought that just the dirname should do. i.e. either mkdir "dirname"; or mkdir "dirname", "0777"; Here is the error: Not enough arguments for mkdir at scbuildprep.pl line 401, near ""updates"

RE: building a "time range" structure

2001-03-15 Thread Jesse Sookne
Hi Chuck, Here's a quick hack that seems to work. I'm sure there are better ways of doing it though. Anyway, hope this helps. -Jesse my %timeranges = ( 1 => { #network number 4 => { '_1159' => 4, '1200_2400' => 6 },#day 4 = Thursday 5 => { '_1159

Re: building a "time range" structure

2001-03-15 Thread dave . clarke
> Hello all, > > I've run into sort of an odd problem. I'm designing a file retrieval > system and one of the requirements it that it is kind to the network. To > assure it follows the rules I need to build a data structure from a > database that hold the network throttle rates (how many max c

RE: style

2001-03-15 Thread Ireland, Kevin
$file="${invar1}.txt"; Kevin Ireland Sr. Systems Engineer Gentiva Health Services (913) 814-2169 [EMAIL PROTECTED] -Original Message- From: Jean-Paul Felix [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 15:46 To: Perl-Win32-Users (E-mail) Subject: style Is there a more eloq

Re: style

2001-03-15 Thread Morag K. Smith
$file = $invar1 .".txt"; or $file = "$invar1.txt"; would work. At 04:46 PM 3/15/01 -0500, Jean-Paul Felix wrote: >Is there a more eloquent way to append .txt to a (string) variable please? >$file=$invar1; >$file.=".txt"; > >thanks >___ >Perl-Win32-Users

style

2001-03-15 Thread Jean-Paul Felix
Is there a more eloquent way to append .txt to a (string) variable please? $file=$invar1; $file.=".txt"; thanks ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

building a "time range" structure

2001-03-15 Thread Chuck . Hirstius
Hello all, I've run into sort of an odd problem. I'm designing a file retrieval system and one of the requirements it that it is kind to the network. To assure it follows the rules I need to build a data structure from a database that hold the network throttle rates (how many max connections he

RE: Beginner's problems

2001-03-15 Thread BP Jonsson
Thanks, I see now what I did wrong. At 14:29 2001-03-14 +0100, Bellenger, Bruno (Paris) wrote: >To stay closer to your code, this works : > >open(IN, "words.txt"); >while(){ >$word = $_ ; >$word =~ chomp $word ; >print "$word and $word\n"; > } > > >The way you did it assigned chomp's retur

Win32::ODBC question ; updating an MS Access table

2001-03-15 Thread Vinicius Alves
I´ve read the perldoc and I´ve found several things, except how to update my DSN. My script blurts out an html page containing several text fields with the data that is in my access file. I want to be able to change that data by simply changing the info in the text fields and clicking the button.

Re: [Perl-win32-users] Adding items to an array

2001-03-15 Thread Ron Grabowski
> I have an array that I'm adding to it every time I see an item, but it is > not adding it's appending to the array? I did not see push() or unshift() anywhere in your code. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveSta