: McCollum, Frank; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Removal from list
Where is the FAQ?
--- "McCollum, Frank"
<[EMAIL PROTECTED]> wrote:
> I am trying to also. They request that you try all
> the options in FAQ,
> which I have yet
I am trying to also. They request that you try all the options in FAQ,
which I have yet to read. So many emails, and so little time.
-Frank
-Original Message-
From: James Lucero [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 11:11 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTEC
Maybe there is a perl solution to this problem.maybe not. I
have a distribution list with several hundred names in it (now these names
are in the format "Perl Beginners" not "[EMAIL PROTECTED]" and I cannot
figure out how to tell Outlook to give me the fully qualified adresses -
That
in perl...
$count++;
print "${count}\r";
-Original Message-
From: Jesse Ahrens [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 12:12 PM
To: [EMAIL PROTECTED]
Subject: print over prior print
I recall doing this in C a long long time ago, but I've forgotten most of
my C. Is it
postie.exe is a great tool. I use it with perl scripts a good bit, because
it allows so many options. Any search on the web will turn up a copy. I am
pretty positive it is freeware too.
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002
Where might one find this 'tutorial'?
-Original Message-
From: Dave Benware [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 2:44 PM
To: Beginners perl
Subject: Re: Hash Question
"Balint, Jess" wrote:
>
> Since this is a beginners list, I thought I would be allowed to ask t
riginal Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 4:46 PM
To: McCollum, Frank; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: File::Find on Win32 -- Directory Permissions Denied
The script is not intended to run on an internet(server) env
I do not see that problem as long as 'I' (read user) have permission. You
can always use the CACLS Windows system command to change permissions, but
there is usually a good reason not to. Is the perl script running on a
server? Does the server have permission to be in the folder?
-Original
There are very many ways to do this in perl. Go to CPAN.org or perldoc and
search under LWP, Treebuilder, HTML, etc. for overwhelming information.
Documentation for these is pretty straightforward.
-Original Message-
From: rory oconnor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January
try ...
if ( ! $size ) { $size = 8 }
printf " %${size}s ", $yourVariableHere;
?frank
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 4:21 PM
To: '[EMAIL PROTECTED]'
Subject: printf using a variable for the field size
I am trying
I do not have a good grasp of File::Find, but I found a way that works and
just go with it...
find(sub {push @files, $File::Find::name if -f}, '.'); #grabs all
files
find(sub {/$ord/i && push @files, $File::Find::name if -f}, '.');
#grabs files whose name matches $ord
Files a
There are several Modules to make this easy at CPAN.org. Check out
HTML::TreeBuilder in particular, and TableExtract is very useful for tearing
numbers (for instance) out of various tables.
-Frank
-Original Message-
From: Collins, Joe (EDSI\BDR) [mailto:[EMAIL PROTECTED]]
Sent: Wednesda
I am not sure if they are platform dependent or not, but CRLF is Carriage
Return + Line Feed, and LF is Line Feed. '\n' I would think is most like a
Line Feed and '\r' is a carriage return. right?
-Original Message-
From: Dave Benware [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January
Sure. Assuming perl is in the default location type
"#!C:/Perl/bin/Perl.exe"
If this does not work Alternatively, go to My Computer -> View -> File
Types -> Add a new type -> Call it Perl -> specify ".pl" as extension -> Add
an action called "Open" -> then "C:\Perl\bin\Perl.exe "%1" %*" in t
I've never done this, but it seems to me it would be nice to set up the days
per month in a little hash table.
%calendarDays (
january => 31,
february => 28,
)
#or should the order be reversed? I'm not that familiar with Hashes.
Then have a check in there that grabs the date (see previous e
I asked this earlier but got no response, so all that is different is the
subject. Surely, there is some one in this group who can answer this
seemingly simple problem! -Frank
> I am guessing that the spaces are the problem, because if I put the same
> string in the Windows Find tool, I get t
> I am guessing that the spaces are the problem, because if I put the same
> string in the Windows Find tool, I get the same unexpected results. I
> have this code below and expect to get the file named... "Mortgage Market
> Review Package (25 Jan 2002).pdf", but instead I get a single word,
> "
Depending on what you are doing... I have found a lot of great ways to pull
out tables from HTML using HTML::TableExtract and LWP::UserAgent and
HTML::TreeBuilder. I really haven't delved in to all of the libraries under
HTML, but these have been greate. see cpan.org or perldoc for more info.
yes. 'gt' is used for strings and '>' would be the numerical equivalent.
lt = less than
eq = equal
ne = not equal
-Original Message-
From: Naveen Parmar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 2:03 PM
To: [EMAIL PROTECTED]
Subject: gt
Is the following correct?
1) if you open it from a shell and type "perl" infront of the file name it
will keep it.
2) I could be wrong, but I think "" = nothing and "<>" = diamond operator
which is used to take input. i.e.
while (<>) {
$_ = $firstLineOfFile
}
-Original Message-
From: N
I have this chunk of code below, where I want to find a file name and add it
to an array called @newFile. Note that only one file will ever match this
search query, so there is no doubt that the right file will be retrieved
(However, they usually prepend the file with a date/time stamp, so I wa
I am not getting the Find Function. (FILE::FIND). I have found all of
these great examples on the web describing how to use the find function
under the following two conditions...
1) You know the exact File Name you are looking for, or you just want a
list of every file in a directory
2) You
I don't know what your timeStamp string looks like, but if it looked like:
1/8/2001 18:00
( $date, $time ) = split; would separate the two. The default split here is
on any whitespace. To specify some other split you would do it as follows:
split/:/; (where it would split on ':').
-Origi
I currently use the below, but I have had problems with it running
out on a server that I have not been able to determine the cause of.
Sometimes no Excel file is produced, and other times, voila. It works
everytime locally.
if ( $outputXls ) {
$filename = $outputFilename . ".txt"
I am not sure, but I think it has to do with $nextline=$line++; It sounds
like $line is a text string and you are autoincrementing it here? Maybe
what you really want is $nextline++; to count the number of lines?
-Original Message-
From: Lance Prais [mailto:[EMAIL PROTECTED]]
Sent: Tues
I did a random sampling of 10,000 random numbers in two separate groups :
for (0..1) { print rand()."\n" }
It seemed to consistently revert towards a mean of 0.50 (i.e. results(1) =
0.503; results(2) = 0.498). I also broke those into groups of 100 and
seemed to get the same results. That
4:04 PM
To: McCollum, Frank
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: global substitution
On Jan 7, McCollum, Frank said:
>$record =~ s/[\.\-]//g;
Neither of those two slashes are needed.
>if it is a '.' or a '-' replace it with nothing.
>Actually, I don't
$record =~ s/[\.\-]//g;
if it is a '.' or a '-' replace it with nothing.
Actually, I don't even think the [] is necessary, so it could just be:
$record =~ s/\.\-//g;
-Original Message-
From: Scott [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 4:02 PM
To: [EMAIL PROTECTED]
Su
Aha. That is very familiar. Thx.
-Original Message-
From: Tanton Gibbs [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 2:54 PM
To: McCollum, Frank; [EMAIL PROTECTED]
Subject: Re: substitute all non-digits with ''. I think I saw this
posted rec ently, but I could n
I want to take all non-digits and drop them out of my string. I would think
it would be something like...
s/!(\d+)//; but this is not the case
Frank McCollum
Bank Of America Securities, LLC
[EMAIL PROTECTED]
(704) 388-8894
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command
the &ParseDate, and &Date_Cmp are looking for subroutines that would split
the dates up, it appears. So, I would expect your code to include a
subroutine similar to this:
sub ParseDate {
($month,$day,$year) = split /\//;
}
but much more detailed to handle different types of date strings.
-Frank
What does the "@$" sign indicate? I have a value in @$row in the code below
that I want to strip out any html tags. I tried to use "s/\<*\>//g;" but it
gives me an error ("Can't modify array deref in substitution").
foreach $ts ($te->table_states) {
print "Table (", join(',', $ts->coords),
I would like to move some VB6 modules that 'merge' adobe pdf files together,
into Perl. I cannot find anything on this. Does anyone have any experience
with this?
To everyone who helped me out over the weekend when I thought I destroyed my
laptop with the linux install (Especially the little tid
Yes, I am trying to get Linux on here, and Windows is completely gone. I
formatted the C: drive. I keep getting this error when I try to autoboot
from the linux cd, "Kernel panic: VFS: Unable to mount root fs on 09:02".
Any thoughts?
-Original Message-
From: maximilian sichart [mailto:
Does anyone know where to get help if you destroy a computer while
installing Linux...?
Problem (of course this comes up after formatting c: drive and using a boot
disk)
1. Linux autoboot.bat program detects windows running and will not install
(of course windows is not running, though)
2. Window
if you cannot ALTER TABLE, I find it quicker to do it as below (using Dave's
example...):
SELECT col1,col2 into tempTable from exampleTable
This leaves off col3 data and retains formatting information for other
columns, then you can do this:
DROP exampleTable
SELECT * into exampleTable from tem
>while (){
>$line = $_;
>chomp($line);
This can be shortened a few ways. i.e.
chomp ($line = $_);
There is probably a better way to get rid of the whitespace, but the only
one that comes to mind is:
s/^s+|s+$//; #replace any leading or ("|") trailing whitespace.
-Frank
-Original
I think 'system("mv", "/dir/file", "/dir2/file");', will only work if you
have access to unix functions.
system("mv", "/dir/file", "/dir2/file");
> -Original Message-
> From: Michael McQuarrie [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 31, 2001 10:51 AM
> To: [EMAIL PROTECTED]
I think the rename function is what you're looking for:
rename "old", "new";
-Original Message-
From: Michael McQuarrie [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 31, 2001 10:51 AM
To: [EMAIL PROTECTED]
Subject: move
I'm sure this is a dumb question. It seems like one anyways.
Rob Hanson sent this to me the other day when I asked a similar question. I
had been using "-I C:/Path/Of/Library/" (I was later informed that this was
more for use when using in-house modules) in the first line of my scripts,
but he listed some alternatives that maybe more appropriate - see belo
Learning Perl - O'reilly and assoc. is the best beginning programming book I
have seen. Followed up with Programming Perl
The other O'Reilly books seem to be good (i.e. Visual Basic for
Applications)
I've just started with Teach Yourself C++, and so far it has not been
helpful at ALL. Maybe I
related question: I want to strip out any '*' symbols as well, and replace
them with a zero. So, I changed my code to reflect:
$origFee =~ s/[%\*]/0/;
It appears that it strips out the % successfully, but anywhere I have a '*'
symbol just gets overlooked. Any thoughts?
-Original Message--
I never got a response for this, but I am pretty sure you can put the line
below at the top of your script and it will search where-ever you would
like...
#!C:/Perl/bin/Perl.exe -I R:/SomeOtherDir/Frameworks/
Where the path after the '-I' tells the script to include this path as a
'search' path.
I want to replace a '%' symbol in a given string, but this string is not $_.
Maybe this is a stupid question, but how do you specify the variable that
you want the substitution to go against??
i.e.
s/%//; # replaces any '%' signs in $_ with nothing
but, I want to replace any '%' signs in $iAmA
And to get the file, John Krahn submitted an example below earlier
tonight
sub get_games_file {
use Fatal qw(open close);
use LWP::Simple;
use HTTP::Status;
my $URL = 'http://www.mcn.net/~kenpom/cbbgames.txt';
my $gamefile = '/home/jeff/games/myfile.txt';
my $rc = mi
Does anyone know where to find resources on parsing textual content out of
an HTML page? I am trying to grab values out of a table on a website. I
can grab the table, but I am having trouble grabbing the actual values from
it...
Thanks
Frank McCollum
Bank Of America Securities, LLC
[EMAIL PROT
I do not understand what is meant by 'depth' in this module (i've read the
accompanying documentation, but I didn't follow it well). Does anyone know
where a good description is?
I basically want to go to a website and figure out what the 'depth' is of a
given table on that site, so that I can
I think I follow you. I want any user on a network to use the same set of
Frameworks, so I use this at the top of my perl script.Here, everyone
has the same server mapped to their R: drive, so we store many Frameworks
and packages here.
#! c:/perl/bin/perl -I r:/usr/rer/prod/current/FRAMEW~1
you have code at the bottom that tells it to loop back to the beginning if
your response is not equal to a value between 1 and 3. So, it would continue
to do this until you entered a valid value - or am I misunderstanding the
question?
> unless ($response eq '1' || '2' || '3') {
>
I'm a beginner too, given, but alternatively, you could unshift the lines
into an array and just check the last variable. This would allow you to
reference the other lines later if there was more work to be done here.
-Original Message-
From: James Kelty [mailto:[EMAIL PROTECTED]]
Sent:
I have several scripts that use Sybase::DBLib that worked using previous
versions of perl, but after installing the most recent ActiveState version,
all of these scripts cause application errors.
I've used fileMerge to compare all of the modules and see no differences,
and I do not see a diff
51 matches
Mail list logo