This may not be specifically geared towards beginners, but it
shouldn't be too hard a task to throw me some ideas or code snippets, so here
goes:
Adobe has a new application and Palm-side reader which allows me to
"convert" and install PDF files onto my Palm device. This is a Win
Ken Hammer writes ..
> I need to write a perl script that will gather system information
>from remote machines. I must communicate to the remote machines
>using SSL. I'm thinking I can use the Socket method to accomplish
>this, but I have had little luck in figuring it out.
>
> Can anyone point
Exactly! I booted into a command line screen and not the GUI logon.
I prefered CL because I didn't need to load a 16M color background
and 50 icons to inititate a talk session or read mail in Pine. :-) ..
Pj
On 16 May 2001, at 17:21, Brett W. McCoy wrote:
> > I've never seen a console screen
Fernando Munoz writes ..
>You are probably right, but it works!.. the fact of the problem
>however, is that the cookie is not set on Internet Explorer, and I can
>not figure it out.
so .. you say that I'm probably right .. so it's probably correct that
Netscape is executing a different program t
You are probably right, but it works!.. the fact of the problem however, is
that the cookie is not set on Internet Explorer, and I can not figure it
out.
-Original Message-
From: King, Jason [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 6:42 PM
To: [EMAIL PROTECTED]
Cc: Fernand
Fernando Munoz writes ..
>I'm in need for a little help. I'm trying to make an script to create a
>cookie and it does just fine with Netscape (creates it and recovers it)
>but It does not work with IE. here is the code I'm using :
if it seriously works in Netscape then there's something serious
Peter Scott writes ..
>At 10:44 AM 5/17/01 +1000, King, Jason wrote:
>>so here's the thing .. Perl doesn't have pointers .. only references
>>.. so you can't have a 1500 element array and grab a reference to the
>>700th element
>
>Oh yes you can:
>
>my @foo = qw(three blind mice);
>my $elemref =
Hey guys!
I'm in need for a little help. I'm trying to make an script to create a
cookie
and it does just fine with Netscape (creates it and recovers it) but It does
not
work with IE. here is the code I'm using :
.
.
.
use CGI;
use CGI::Cookie;
$q = new CGI;
%cookies= fetch CGI::Cookie;
$code
At 10:44 AM 5/17/01 +1000, King, Jason wrote:
>so here's the thing .. Perl doesn't have pointers .. only references .. so
>you can't have a 1500 element array and grab a reference to the 700th
>element
Oh yes you can:
my @foo = qw(three blind mice);
my $elemref = \$foo[2];
> .. because referen
Gary wrote ..
&file_control(\@lines[10..36]); # pass pointer to array elements
I just wanted to add something for those that are interested in what the
above actually does .. let's use an example
@foo = qw/a b c d e f g h i j/;
then we do this
$bar = \@foo[3..6];
what it does is cr
Gary writes ..
>The whole point of using references was so that I didn't want to keep
>copying array slices. This script will be handling nearly 1500 program
>source files totalling almost 750k lines of code.
>
>Any further help would be appreciated.
so here's the thing
Anshu Anshu writes ..
> I have one small doubts and I want to share with you to make sure.
>
>I was using old version of perl5 and couple of scripts were using
>DBD, DBI, Time modules. Recently I did upgrade the perl5 version
>5.005_03 (with Sun package ). Will upgarding the perl version will
>br
Jos Boumans writes ..
>Actually, its something YOU need to tell your server, so it knows where
>perl is
>
>the #! is called a shebang and basicly tells your computer where to
>find perl
>
>an example
>
>#!c:\perl\bin\perl is what you should type if you installed perl on
>a wintendo in c:\perl (bi
The whole point of using references was so that I didn't want to keep
copying array slices. This script will be handling nearly 1500 program
source files totalling almost 750k lines of code.
Any further help would be appreciated.
Gary
On Tuesday 15 May 2001 5:32 pm, Jos Boumans wrote:
> O
On May 16, jane doe said:
>How do I remove duplicate items from an array? I apologize for being a
>"newbie". :)
Please read 'perldoc -q duplicate' or 'perldoc -q unique'. You can see
these answers in Perl FAQ #4, online at http://www.perldoc.org/, or on
your computer via the 'perldoc' command.
Hi All,
How do I remove duplicate items from an array? I apologize for being a
"newbie". :)
Thanks,
JD
_
Get your FREE download of MSN Explorer at http://explorer.msn.com
At 11:13 PM 5/16/01 +0200, Paul Johnson wrote:
>On Wed, May 16, 2001 at 11:34:26AM -0700, Peter Scott wrote:
> > At 12:32 AM 5/17/01 +0500, Tirthankar C.P wrote:
> > >What is the simplest way to read in a matrix, say
> >
> > my @matrix;
> > while (<>) {
> >push @matrix, [ split ];
> > }
>
>Wit
basicly because of the path:
/pub/perl-cgi/whatever is a linux path, not a wintendo path so you
REALLY want to check that
regards,
Jos
- Original Message -
From: "Kevin Williams" <[EMAIL PROTECTED]>
To: "Jos Boumans" <[EMAIL PROTECTED]>
Cc: "perl" <[EMAIL PROTECTED]>
Sent: Wednesda
Hi,
Right now I have:
sub add{
my($htmldata) = loadfile($investorfile);
my($code) = time;
if ($read{'day'} eq ''){
$date = "$read{'month'} $read{'year'}";
} else {
$date = "$read{'month'} $read{'day'}, $read{'year'}";
}
On Wed, 16 May 2001, Liger-dc wrote:
> are the variables $1 and $2 special variables? and if
> so what do they do?
Yes, they refer to parenthesised expressions in a regular expression:
/(.*):(\d)/
$1 would be whatever matched .*
$2 would be whatever matched \d
Please see the perlre documentat
On Wed, 16 May 2001 [EMAIL PROTECTED] wrote:
> Oh sure Perl and html are different. For practical purposes Perl is
> universal while html is a faux language created expressly for
> the internet. Can you imagine ssh in html?
I wouldn't say it's a faux language any more than LaTeX is a faux
langua
On Wed, May 16, 2001 at 11:34:26AM -0700, Peter Scott wrote:
> At 12:32 AM 5/17/01 +0500, Tirthankar C.P wrote:
> >What is the simplest way to read in a matrix, say
>
> my @matrix;
> while (<>) {
>push @matrix, [ split ];
> }
Without wishing to turn this into FWP (too much), and noting the r
>I am trying to writ a script that would search a system for certain file
>sizes and if so e-mail me.
check out File::Find on cpan. You can do something like...
use File::Find;
sub checkSize {
push @files, $_ if (-s == $specialSize);
}
find (\&checkSize, @dirs);
if (defined @files
Actually, the American military acronym 'fubar' goes back at least to World War II.
The use of 'foo' and 'bar' as metasyntactic variables probably dates to the the lisp
hackers at the MIT AI lab in the 50's or 60's , before unix. Foo and bar function
like 'x' or 'n' in the traditional mathe
This worked for me... I found it in a book (so I'm not sure what happens
and exactly why) while looking how to read from Excel workbooks. (First
thing I need to do is upgrade my version of Perl, then I'll try the module
you refer to below.
Anyway, give this a try:::
use Win32;
use OLE;
$exce
I am trying to writ a script that would search a system for certain file
sizes and if so e-mail me.
Something like this. Thanks [EMAIL PROTECTED]
#!/usr/bin/perl -w
if {
qx(find \ -size +1c -print > /root/big_files | e-mail me)
else
On May 16, Liger-dc said:
>are the variables $1 and $2 special variables? and if
>so what do they do?
Read perldoc perlvar:
$
Contains the subpattern from the corresponding set
of parentheses in the last pattern matched, not
counting patterns matched
are the variables $1 and $2 special variables? and if
so what do they do?
__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
I need to write a perl script that will gather system information
from remote machines. I must communicate to the remote machines
using SSL. I'm thinking I can use the Socket method to accomplish
this, but I have had little luck in figuring it out.
Can anyone point me in the right direction?
Hello,
And here's already my first question.
I have just heard about the module Spreadsheet::WriteExcel for
ActivePerl And I immediately installed it. Everything went good until I
figured out the following problem: I can create a new Excell workbook,
but how can I modify it later on?? I have hea
I am reading in a logfile, writing the records that are to be pruned from
the top to an archived file. I then open a temp file store the
modification time of the
logfile and write the remainder of the log to the tempfile. Then I check
the current modification time of the logfile if it has chang
At 11:32 AM 5/16/01 -0600, Scott Burks wrote:
>I have a script that has the following two lines:
>
>system("echo find /OPERATIONS/system_cleanup/logs -name \"'log.*'\"
>-mtime +30 -exec rm {} '\\;' '>> $log_file 2>&1'");
>
>system("find /OPERATIONS/system_cleanup/logs -name \"'log.*'\" -mtime
>+30
I have a script that has the following two lines:
system("echo find /OPERATIONS/system_cleanup/logs -name \"'log.*'\"
-mtime +30 -exec rm {} '\\;' '>> $log_file 2>&1'");
system("find /OPERATIONS/system_cleanup/logs -name \"'log.*'\" -mtime
+30 -exec rm {} '\\;' '>> $log_file 2>&1'");
The first
At 12:32 AM 5/17/01 +0500, Tirthankar C.P wrote:
>What is the simplest way to read in a matrix, say
>
>
>19911231 12200 4274
> 19921231 12205 7822
> 19931231 3313 8208
> 19941231 2362 12292
> 19951231 4348 11673
> 19961231 11751 14255
>19971231 6318 12339
>19981231 14901 11530
>19991231 373
What is the simplest way to read in a matrix, say
19911231 12200 4274
19921231 12205 7822
19931231 3313 8208
19941231 2362 12292
19951231 4348 11673
19961231 11751 14255
19971231 6318 12339
19981231 14901 11530
19991231 373 17353
in perl? I just know that the matrix has to have three
- Original Message -
From: Matt Noel <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 16, 2001 7:05 PM
Subject: Sorting a Two Dimensional Array
(...)> I have a simple two-dimensional array, call it @Weights. I think of
the
> first index as being the Row index and the se
Oh sure Perl and html are different. For practical purposes Perl is
universal while html is a faux language created expressly for
the internet. Can you imagine ssh in html?
I've never seen a console screen blanker, but I am comfortable in a
console window and prefer it to GUI; my knowledge of
Can someone help with what is probably a trivial build problem?
I am trying to use dmake and the Borland free commandline compiler (5.5)
with perl 5.6.1 source on a win2K box, but dmake appears to exit (very)
prematurely, perhaps without seeing the compiler. With makefile.mk settings
recommend
--- Craig Moynes/Markham/IBM <[EMAIL PROTECTED]> wrote:
> Is it acceptable practice to use instance methods that access
> instance variables (essentially global variables from a pure look of
> the code) or is it better to pass in a slew of variables to a
function
> for ease-of-reusability later on
--- Jeff Pinyan <[EMAIL PROTECTED]> wrote:
> On May 16, Paul said:
>
> >"or" also short circuits, and some consider it more readable, but it
> >(and the "and" operator) always return(s) a boolean value, while ||
> >(and &&) return the value of the first true expression.
> >
> > $a or $b # retur
For a variable number of second-dimension elements, try:
my @sorted = sort { my($ndx,$ret) = (0,0);
while(defined($a->[$ndx]) and defined($b->[$ndx])) {
last if $ret = ($a->[$ndx] <=> $b->[$ndx++]);
}
$ret;
} @Weights;
This keeps comparing elements fro
On Wed, 16 May 2001, Craig Moynes/Markham/IBM wrote:
> Some of you may remember hearing about the logfile pruning/archiving tool I
> was working on (with the date parsing from the record and second
> calculations etc).
>
> I am wondering about the 'perl way' or using variables. I have created a
At 11:20 AM 5/16/01 -0400, Craig Moynes/Markham/IBM wrote:
>I am wondering about the 'perl way' or using variables. I have created a
>class for a generic 'logfile'. I then have a series of instance variables
>such as the name of the logfile, the record seperator regular expression, a
>series of
At 03:51 PM 5/16/01 +0300, kosta wrote:
>Hello,
>
>while trying to install some modules via ppm (in WindowsNT), it sometimes
>gives me such an error message:
>
>Error installing package 'Some::Package': Could not locate a PPD file for
>package
>
>So: where can I get some more info about those m
Some of you may remember hearing about the logfile pruning/archiving tool I
was working on (with the date parsing from the record and second
calculations etc).
I am wondering about the 'perl way' or using variables. I have created a
class for a generic 'logfile'. I then have a series of instan
On May 16, Paul said:
>"or" also short circuits, and some consider it more readable, but it
>(and the "and" operator) always return(s) a boolean value, while ||
>(and &&) return the value of the first true expression.
>
> $a or $b # returns 1 if either has a non-false value, else ''
> $a || $b
--- "Porter, Chris" <[EMAIL PROTECTED]> wrote:
> Silly question --- where do i exactly insert all of my information
> that points to where my changes need to be made. Sorry if this is a
> stupid question. Thank you.
If you don't know, it would be sillier not to ask. =o)
chdir "/the/directo
--- Paul Johnson <[EMAIL PROTECTED]> wrote:
> On Wed, May 16, 2001 at 10:05:14AM -0700, Matt Noel wrote:
> > I have a simple two-dimensional array, call it @Weights. I think
> > of the first index as being the Row index and the second being the
> > Column index. Normally I'd access an entry thu
.dat is used by a myriad of program to indicate it holds some form of data for
the program: .dat(a)
among the heavy users is SPSS and its friends...
bad part is that more then one kind of program uses it, and i've even seen perl
modules relying on a .dat file for them, so there's no way to exclusi
HI All,
I have one small doubts and I want to share with you to make sure.
I was using old version of perl5 and couple of scripts were using DBD, DBI,
Time modules. Recently I did upgrade the perl5 version 5.005_03 (with Sun
package ).
Will upgarding the perl version will break something ? Bec
Kristi:
the problem is that your @INC array (which holds all the directories the perl
interpreter will look for files),
hold only some temp folder in your my documents directory.
ok, this is BAD =)
there are 2 solutions to this problem:
1) the hard way: read perldoc perlrun and perldoc perlfaq8
Actually, its something YOU need to tell your server, so it knows where perl is
the #! is called a shebang and basicly tells your computer where to find perl
an example
#!c:\perl\bin\perl is what you should type if you installed perl on a wintendo
in c:\perl (bin\perl is simply perls subdir to
> I have installed Perl 623 and PDK 210. Almost everytime I try to compile
> one of my old programs, I get this error:
>
> Can't locate File/Glob.pm in @INC (@INC contains:
> C:\DOCUME~1\kmgood\LOCALS~1\Te
> mp\0830\ .) at ibtdabilitec.pl line 205.
> BEGIN failed--compilation aborted at ibt
This is in the jargon file:
http://www.tuxedo.org/~esr/jargon/html/entry/foobar.html
Cheers,
Kevin
On Wed, May 16, 2001 at 09:07:11AM -0400, Brett W. McCoy ([EMAIL PROTECTED])
spew-ed forth:
> On Wed, 16 May 2001, ber kessels wrote:
>
> > Maybe a silly question but where does foo-bar or fooba
For more information about words like "foo" and "bar"... you can consult
"the Jargon File", found in several spots on the web. Here's one of its
locations...
http://www.tuxedo.org/~esr/jargon/
Stephen Neu
Internet Development
Characterlink.net
(630) 323-9800 ext. 235
: Maybe a silly question but where does foo-bar or foobar refer to?
:
: Everyone uses it in perl, but I cannot find the origin of it.
See the entry in the Hacker Jargon file:
http://www.tuxedo.org/~esr/jargon/html/entry/foo.html
-- tdk
On Wed, 16 May 2001, ber kessels wrote:
> Maybe a silly question but where does foo-bar or foobar refer to?
>
> Everyone uses it in perl, but I cannot find the origin of it.
> I am not english (I am Duch), but even my english teacher didn't know it, he had
> even never heard of it.
foo and bar
actually, ww2 veterans are thought to have originated it. 'fucked up beyond all
recognition'.
Jos Boumans wrote:
> it comes from the vietnam war iirc (watch full metal jacket if you want some
> 'insight' ;-)
>
> it is originally 'fubar' or Fucked Up Beyond Any Recognition (pardon the expletives
On Wed, 16 May 2001 [EMAIL PROTECTED] wrote:
> I hate to admit ignorance but that's why I'm here. I did not realize
> that text consoles used screensavers so I thought KDE or
> something of that ilk. My idea is simple: alternating colored
> screens/backgrounds containing short text messages.
You
Hello,
while trying to install some modules via ppm (in WindowsNT), it sometimes gives me
such an error message:
Error installing package 'Some::Package': Could not locate a PPD file for package
So: where can I get some more info about those myserious PPD files, and what are other
ways to i
it comes from the vietnam war iirc (watch full metal jacket if you want some
'insight' ;-)
it is originally 'fubar' or Fucked Up Beyond Any Recognition (pardon the expletives)
so, us perl geeks use 'foo' and 'bar' as standard variable names in examples now...
So much for a short stroll thru his
Hi,
Maybe a silly question but where does foo-bar or foobar refer to?
Everyone uses it in perl, but I cannot find the origin of it.
I am not english (I am Duch), but even my english teacher didn't know it, he had
even never heard of it.
I am just curious that's all.
Thanx for reading
Ber
__
Forwarded message.
-Original Message-
From: Porter, Chris
Sent: Wednesday, May 16, 2001 7:14 AM
To: '[EMAIL PROTECTED]'; ',[EMAIL PROTECTED]'
Subject: RE: FW: delete files
Silly question --- where do i exactly insert all of my information that
points to where my changes need to be made
I hate to admit ignorance but that's why I'm here. I did not realize
that text consoles used screensavers so I thought KDE or
something of that ilk. My idea is simple: alternating colored
screens/backgrounds containing short text messages.
I am probably trying to run a mile before I can sit u
On Wed, 16 May 2001 [EMAIL PROTECTED] wrote:
> I am more raw than a newbie. I don't know a command yet, but I'm
> here to listen and learn. When y'all pick yourself up off the floor
> from laughing too hard, here's a serious question. I have an idea for
> a simple screensaver for a Linux box. Can
I am more raw than a newbie. I don't know a command yet, but I'm
here to listen and learn. When y'all pick yourself up off the floor
from laughing too hard, here's a serious question. I have an idea for
a simple screensaver for a Linux box. Can I use Perl to create it?
Thanks,
Pj
On Wed, May 16, 2001 at 10:05:14AM -0700, Matt Noel wrote:
> I have a simple two-dimensional array, call it @Weights. I think of the
> first index as being the Row index and the second being the Column
> index. Normally I'd access an entry thus:
>
> $ItemWeight = $Weights[$row][$col];
>
> I
67 matches
Mail list logo