> "Jason" == Jason Corbett <[EMAIL PROTECTED]> writes:
Jason> How can i rename a file or create a file with the date
Jason> included? For example, I want to automate and run reports and
Jason> save the reports under the date of when they were created
Jason> i.e. JC07082004. Whats the easiest w
Please bottom post
>
> thanks. I wasn't aware of the rename function. As far as converting to
MMDD, can that be done on the fly using localtime()? I am reading
online docs now, but nothing talks about it done on the fly i.e. when I
call the function up. If not I will work on it some more
If my Perl contains ${DBI::errstr} I get warnings like this:
Ambiguous use of ${DBI::errstr} resolved to $DBI::errstr at (eval 20) line 284.
If my Perl contains $DBI::errstr (without the braces) I don't get these
warnings. Is there an explanation for this?
When I use things like ${File::Find::n
On Jul 7, Chris Charley said:
>Like Luke's solution, but using Date::Simple which comes with the standard
>distro of Perl.
>
>#!/usr/bin/perl
>use strict;
>use warnings;
>use Date::Calc qw/ Day_of_Week Add_Delta_Days /;
This uses Date::Calc, not Date::Simple... and neither of those came with
*my*
thanks. I wasn't aware of the rename function. As far as converting to MMDD, can
that be done on the fly using localtime()? I am reading online docs now, but nothing
talks about it done on the fly i.e. when I call the function up. If not I will work on
it some more and follow up with whateve
Hello,
I am finally done with my 508 automation project. Thanks to everyone who
responded to my mail, especially Jenda Krynicky. I am finally able to take
any "structured" pdf table and convert it to a "screen readable HTML" file
format.
The end of one project marks the beginning of anothe
-Original Message-
From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 07, 2004 11:47 AM
To: [EMAIL PROTECTED]
Subject: Re: Form Validation
John Pretti wrote:
> OK now I am really lost. Here is what I am not following, the first
> time the form is run it will have n
> jason corbett wrote:
> > How can i rename a file or create a file with the date included? For
> > example, I want to automate and run reports and save the reports
> > under the date of when they were created i.e. JC07082004. Whats the
> > easiest way to do this?
> >
> > Thanks,
> > JC
>
>
Like Luke's solution, but using Date::Simple which comes with the standard
distro of Perl.
#!/usr/bin/perl
use strict;
use warnings;
use Date::Calc qw/ Day_of_Week Add_Delta_Days /;
my @days = (undef, qw/ Mon Tue Wed Thur Fri Sat Sun /);
if ($ARGV[0] !~ /^\d{4}-\d{2}-\d{2}$/) {
die "Date given
jason corbett wrote:
> How can i rename a file or create a file with the date included? For
> example, I want to automate and run reports and save the reports
> under the date of when they were created i.e. JC07082004. Whats the
> easiest way to do this?
>
> Thanks,
> JC
Using localtim
How can i rename a file or create a file with the date included? For example, I want
to automate and run reports and save the reports under the date of when they were
created i.e. JC07082004. Whats the easiest way to do this?
Thanks,
JC
Have not received any response yet. Any idea?
Issa Mbodji wrote:
>
> I have installed Oracle which comes with an Apache server. Now I have it
> disabled so that I can use my old Apache server that I had installed a
> while ago. I am trying to use LWP::Simple which I intalled too a while
> ago, bu
- Original Message Follows -
Date: 7 Jul 2004 14:36:00 -
> In article <[EMAIL PROTECTED]>,
> >I can't seem to get Net::DNS installed. After it runs its tests it reports:
> >Failed 1/19 test scripts, 94.74% okay. 5/816 subtests failed, 99.39% okay.
> >make: *** [test_dynamic] Error 2
> >
Bolcato Chris wrote:
Which DBM modules should be used or is most common, compatible,
recommended?
There is no simple answer to that question. See for instance the
section "Standard Modules" in "perldoc perlport".
In CGI scripts, where I care about portability and the databases are
small, I prefer S
Hello all,
Which DBM modules should be used or is most common, compatible, recommended?
Would this be a good choice for sharing variable data with multiple perl
scripts? Kind of a shared variable database?
Chris
Luke,
Thanks!!! Works exactly as needed!
-c
On Wednesday 07 July 2004 09:41 am, Bakken, Luke wrote:
> > Hi Guys,
> >
> > I'm having a real hard time trying to figure this out..
> >
> > There are tons of modules on dates, etc, but I can't seem to
> > find one to do
> > what I need.
> >
> > I have
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Kevin W. Gagel) writes:
>I can't seem to get Net::DNS installed. After it runs its tests it reports:
>Failed 1/19 test scripts, 94.74% okay. 5/816 subtests failed, 99.39% okay.
>make: *** [test_dynamic] Error 2
> /usr/bin/make test -- NOT OK
>Run
John Pretti wrote:
OK now I am really lost. Here is what I am not following, the first
time the form is run it will have no parameters so the form will
just be presented; however if someone clicks promote without
selecting a directory it will still be blank, so how can perl
determine when the promo
Hello all. This is my first time back at Perl-Beginners in about a year.
Is there a fairly easy way to create context-sensitive help using perl? I've
just been asked to create documentation for a web-based software application
(I think it was developed in Perl). I know I'm going to create traditio
>
>
> On Tue, 2004-07-06 at 14:41, Wiggins d Anconia wrote:
> >
> > 'direct' is slightly different, I am not sure there is a way to do this
> > in the options to G::I, but should instead be done directly to your
> > handles, I am also not sure of a way to specify non-buffered during
> > handle i
Ricardo SIGNES wrote:
* Cinzia Sala <[EMAIL PROTECTED]> [2004-07-07T09:35:42]
I would like to transform a string like :
MSDDIDWLHSRRGVCK
in a identical string, but with two spaces between each letter:
You wouldn't use tr/// for this. There are two simple ways:
$string =~ s/(.)(?!\Z)/$1 /g;
# re
John Pretti wrote:
-Original Message-
From: JupiterHost.Net [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 06, 2004 3:17 PM
To: John Pretti
Cc: [EMAIL PROTECTED]
Subject: Re: Form Validation
John Pretti wrote:
Hi all,
Hello,
What is the best way to validate a form element? I am using
-Original Message-
From: JupiterHost.Net [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 06, 2004 3:17 PM
To: John Pretti
Cc: [EMAIL PROTECTED]
Subject: Re: Form Validation
John Pretti wrote:
> Hi all,
Hello,
> What is the best way to validate a form element? I am using the following
>
> Ron Goral wrote:
> > Greetings -
> >
> > I am having trouble locating and using modules that are not in the
> > current directory of a cgi script. For this test, I know the
> > directory structure looks like this:
> >
> > cgi-bin/test/test.cgi
> > cgi-bin/lib/DGStanLib.pm
>
> From: Bob Showalte
> On Tuesday 06 July 2004 23:49, Bryan Harris wrote:
>>
>> I found this construct in the Perl Cookbook:
>>
>> $Current_Screen = param(".State") || "Default";
>>
>> I thought it was really cool because if the value of param(".State")
>> comes back undefined, the $Current_Screen variable gets set
Ron Goral wrote:
I am having trouble locating and using modules that are not in the
current directory of a cgi script. For this test, I know the
directory structure looks like this:
cgi-bin/test/test.cgi
cgi-bin/lib/DGStanLib.pm
However, this script and the required modules may be used by others
a
Ron Goral wrote:
> Greetings -
>
> I am having trouble locating and using modules that are not in the
> current directory of a cgi script. For this test, I know the
> directory structure looks like this:
>
> cgi-bin/test/test.cgi
> cgi-bin/lib/DGStanLib.pm
Why not the straightforward:
u
> Greetings -
>
> I am having trouble locating and using modules that are not in the current
> directory of a cgi script. For this test, I know the directory structure
> looks like this:
>
> cgi-bin/test/test.cgi
> cgi-bin/lib/DGStanLib.pm
>
> However, this script and the required modules may b
Greetings -
I am having trouble locating and using modules that are not in the current
directory of a cgi script. For this test, I know the directory structure
looks like this:
cgi-bin/test/test.cgi
cgi-bin/lib/DGStanLib.pm
However, this script and the required modules may be used by others and
[EMAIL PROTECTED] wrote:
Gunnar Hjalmarsson wrote:
[EMAIL PROTECTED] wrote:
I will have a file that contains anywhere from 1-40 strings,
but I would like 4 E strings per line then a \n
This seems to be the same problem as you posted about a few days
ago:
http://www.mail-archive.com/beginners%40per
yes this is true, but I really did not understand them so I figured ask
again to see if anyone else had more ideas. I will continue to try the
Tie::File module b/c this looks to be the most promising.
thanks again,
derek
Gunnar Hjalmarsson <[EMAIL PROTECTED]>
07/06/2004 08:16 PM
Wil wrote:
> @data = split ("\|",$line);
The double quotes are eating the backslash before split sees it. split()
treats the first arg as a regex (even if you pass it as a string), and the
pipe char needs to be escaped with a backslash in order to be treated as a
literal character. What you'
On Jul 7, Luis said:
>"Can't use string ("1") as a HASH ref while "strict refs" in use at
>TestObject.pm line 21."
> sub insertFriends {
> my $self = @_;
The problem is that $self is not what you think it is. You have stored
the number of elements in @_ into $self. You meant
my ($sel
On Jul 6, Wil said:
> @data = split ("\|",$line);
The double-quoted string "\|" is equal to "|". You have gained nothing
with your backslash, because it was used by the double quotes, and never
got to the regex engine.
| is a regex metacharacter. split() takes a regex as its first argumen
On Jul 7, [EMAIL PROTECTED] said:
>Try using in the following way,
>$DELIM_PIPE = '|';
>@data = split /[$DELIM_COMMA]/,$line;
You used different variable names. And this won't work in all cases.
>@data = split /['|']/,$line;
That splits on a | or a ' character, which is not is intended.
--
J
* Cinzia Sala <[EMAIL PROTECTED]> [2004-07-07T09:35:42]
> I would like to transform a string like :
>
> MSDDIDWLHSRRGVCK
>
> in a identical string, but with two spaces between each letter:
>
You wouldn't use tr/// for this. There are two simple ways:
$string =~ s/(.)(?!\Z)/$1 /g;
# replace
> Hi Guys,
>
> I'm having a real hard time trying to figure this out..
>
> There are tons of modules on dates, etc, but I can't seem to
> find one to do
> what I need.
>
> I have one date, for example: 2004-07-07.
>
> I need to take that date, get Monday's date and Sunday's date
> where 2004
Hi, I am a really new perl beginner and I would like to have some help.
I would like to transform a string like :
MSDDIDWLHSRRGVCK
in a identical string, but with two spaces between each letter:
M S D D I D W L H S R R G V C K
I have tried with tr
$string =~ tr/ABCDEFGHIJKLMNOPQRSTUV
* Anish Mehta <[EMAIL PROTECTED]> [2004-07-07T04:49:30]
> Does anyone knows about some good links on PERL POE, how it allows Perl
> code to make asynchronous, non-blocking I/O calls and handle those I/O
> calls on the basis of Event Driven model and Event Queues.
poe.perl.org
or, of course, the c
On Wednesday 07 July 2004 12:15, Jerry Preston wrote:
> I am looking for a way to run Active Perl CGI on my PC that is setup on
> Windows XP. I have installed Apache and I am trying to figure out how
> to
> set it up the Virtual Host mode to run Perl script with CGI like I do on
> my
> work SUN st
On Tuesday 06 July 2004 23:49, Bryan Harris wrote:
>
> I found this construct in the Perl Cookbook:
>
> $Current_Screen = param(".State") || "Default";
>
> I thought it was really cool because if the value of param(".State")
> comes back undefined, the $Current_Screen variable gets set to
> "Defaul
Hi!
I am looking for a way to run Active Perl CGI on my PC that is setup on
Windows XP. I have installed Apache and I am trying to figure out how to
set it up the Virtual Host mode to run Perl script with CGI like I do on my
work SUN station. Any ideas on how do this or is there a better way?
T
Oh, I forgot to write down the line numbers. Line 21 is
$self->{friends}->{'Juergen'} = "Sonja";
in the "TestObject.pm". So it's the first access to the hash-array. I'm
searching the problem since some days. So I would be happy if anyone
could explain the problem with the hash.
Thanks in advan
Hi
Use the following methods from the Date::Calc module from CPAN:
Week_of_Year:
($week,$year) = Week_of_Year($year,$month,$day);
Monday_of_Week:
($year,$month,$day) = Monday_of_Week($week,$year);
Add_Delta_Days:
($year,$month,$day) = Add_Delta_Days($year,$month,$day, $Dd);
Shouldn't be t
Hello Everyone,
Does anyone knows about some good links on PERL POE, how it allows Perl
code to make asynchronous, non-blocking I/O calls and handle those I/O
calls on the basis of Event Driven model and Event Queues.
Waiting for your suggestions.
Thanks & Regards,
A+
--
To unsubscribe, e-mail: [EM
i'm having troubles converting ascii extended symbols, for exaple one
of them looks like that '=DC' in win, but in unicode, or old ibm dos
extended ascii its black box. most of ascii art using this and sign
like that. what i'd like to do is create dynamic .png image with
content of some ascii file.
Hi Guys,
I'm having a real hard time trying to figure this out..
There are tons of modules on dates, etc, but I can't seem to find one to do
what I need.
I have one date, for example: 2004-07-07.
I need to take that date, get Monday's date and Sunday's date where 2004-07-07
is between.
Any s
I found this construct in the Perl Cookbook:
$Current_Screen = param(".State") || "Default";
I thought it was really cool because if the value of param(".State") comes
back undefined, the $Current_Screen variable gets set to "Default".
So the other day I wanted to do something similar:
@somea
Hi,
I have a problem. The following code results a
"Can't use string ("1") as a HASH ref while "strict refs" in use at
TestObject.pm line 21."
Error if I include the "use strict" command. I don't understand why this
error occures. Any suggestions??
First the object (TestObject.pm):
###
Bryan Harris wrote:
I found this construct in the Perl Cookbook:
$Current_Screen = param(".State") || "Default";
I thought it was really cool because if the value of
param(".State") comes back undefined, the $Current_Screen variable
gets set to "Default".
So the other day I wanted to do something s
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 07, 2004 1:18 AM
> To: [EMAIL PROTECTED]
> Subject: Mail App
>
>
> Hello all,
>
> I have written first in PHP and then in Java an app to fetch
> attachments from a remote mailbox.
>
> I
51 matches
Mail list logo