Richard Lee wrote:
I just read FAQ on finding out yesterday's time.
I see that one of the easy way to find out is
my $date = scalar localtime( ( time() - ( 24 * 60 * 60 ) ) );
print "$date\n";
and it works fine for me
I also see lot of modules that will make life easier for beginners..
but s
On Tue, Apr 8, 2008 at 12:28 AM, Richard Lee <[EMAIL PROTECTED]> wrote:
snip
> Tried it but looks like I have them installed. perhaps they are old?
snip
> libpcap-0.9.4-11.fc6
> libpcap-devel-0.9.4-11.fc6
>
> [EMAIL PROTECTED] ~]# cat /etc/issue
> Fedora Core release 6 (Zod)
snip
The latest v
Chas. Owens wrote:
On Mon, Apr 7, 2008 at 11:48 PM, Richard Lee <[EMAIL PROTECTED]> wrote:
Why is this failing?
I checked the dependency on the CPAN and it had 0...
I am installing it as root(it's my personal machine).. Please advise.
snip
The dependencies on CPAN refer to dependen
On Mon, Apr 7, 2008 at 11:48 PM, Richard Lee <[EMAIL PROTECTED]> wrote:
> Why is this failing?
>
> I checked the dependency on the CPAN and it had 0...
>
> I am installing it as root(it's my personal machine).. Please advise.
snip
The dependencies on CPAN refer to dependencies on other Perl modu
Why is this failing?
I checked the dependency on the CPAN and it had 0...
I am installing it as root(it's my personal machine).. Please advise.
cpan[1]> install Net::Pcap
CPAN: Storable loaded ok (v2.15)
Going to read /root/.cpan/Metadata
Database was generated on Mon, 07 Apr 2008 17:29:45 G
From: "perl pra" <[EMAIL PROTECTED]>
> I have a wsdl file i need to do the following in perl.
>
> I need to convert the wsdl into perl object or perl code.
>
> Then user perl object/perl code to generate the request xml files with
> different data types into the tags.
>
> can anybody give me som
protoplasm wrote:
On Apr 6, 12:07 pm, [EMAIL PROTECTED] (John W. Krahn) wrote:
"Your program" was actually generated by the 'find2perl' program and as
such has a lot of stuff in there that you don't need. It could be
simplified to:
#!/opt/local/bin/perl
use warnings;
use strict;
use File::Find
On Mon, Apr 7, 2008 at 11:26 AM, Kevin Viel <[EMAIL PROTECTED]> wrote:
snip
> The results of phymap my be several lines of text. I would like to process
> these lines in perl
snip
You have several options the qx// operator*, open**, IPC::Open2***,
and IPC::Open3.
The qx// operator is the e
On Mon, 2008-04-07 at 10:26 -0500, Kevin Viel wrote:
> On my Solaris box, I have a perl program that calls a second program via
> !system:
>
> my $sys = !system "phymap" ;
Actually this statement is read as:
my $sys = ! (system "phymap");
The NOT operator is applied to returned value of the s
On Mon, Apr 7, 2008 at 11:44 AM, Richard Lee <[EMAIL PROTECTED]> wrote:
> Daniel Brown wrote:
> >
> >Was there a reason this was sent to the PHP list as well? Maybe
> > just a typo?
> >
> def a typo.. sorry about that
>
No problem at all. Just checking in case the PHP question was
miss
On Apr 6, 12:07 pm, [EMAIL PROTECTED] (John W. Krahn) wrote:
> "Your program" was actually generated by the 'find2perl' program and as
> such has a lot of stuff in there that you don't need. It could be
> simplified to:
>
> #!/opt/local/bin/perl
> use warnings;
> use strict;
> use File::Find;
>
>
On my Solaris box, I have a perl program that calls a second program via
!system:
my $sys = !system "phymap" ;
The results of phymap my be several lines of text. I would like to process
these lines in perl, but since the parent waits for the child
it does not appear that I can "feed" them to STD
On Sun, Apr 6, 2008 at 10:36 PM, Richard Lee <[EMAIL PROTECTED]> wrote:
> I am trying to open a big file and go through line by line while limiting
> the resource on the system.
> What is the best way to do it?
>
> Does below read the entire file and store them in memory(not good if that's
> the
Hi Gurus,
I have a wsdl file i need to do the following in perl.
I need to convert the wsdl into perl object or perl code.
Then user perl object/perl code to generate the request xml files with
different data types into the tags.
can anybody give me some idea or Is there any other way of doing
Daniel Brown wrote:
On Sun, Apr 6, 2008 at 10:36 PM, Richard Lee <[EMAIL PROTECTED]> wrote:
I am trying to open a big file and go through line by line while limiting
the resource on the system.
What is the best way to do it?
Does below read the entire file and store them in memory(not good
On Sun, Apr 6, 2008 at 5:36 AM, <[EMAIL PROTECTED]> wrote:
> Hi,
> I am doing some homework from the book Learning Perl chapter 4 excercise 1,
> Looking at the script below, I wonder why line 6 (print "Enter some numbers
> on separate line: ";) is not printed immediately after the previous prin
On Sun, Apr 06, 2008 at 08:51:00PM -0700, Casey wrote:
> I hit reply-all... now am I suddenly subscribed to Perl and Ruby lists!?!
Be careful. Next time you do it you'll be subscribed to Haskell, OCaml
and Smalltalk lists.
Bwahahaha!
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
--
On Mon, 07 Apr 2008 17:11:30 +0800, cat guo wrote:
> Everyday , i must click a link on a website many times, So i want to use
> perl to do it automatic.
>
> Is there someway to do this ?
See WWW::Mechanize on CPAN.
--
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/
--
From: Julian Leviston <[EMAIL PROTECTED]>
> You could use ActiveRecord.
Without a database? I guess not. You'd still need at least SQLite.
But you are right, you could use ActiveRecord to obtain a nice object
oriented wrapper around the database so that it doesn't scare you.
Or, assuming you do
From: "Kelly Jones" <[EMAIL PROTECTED]>
> Many programming languages (including Perl, Ruby, and PHP) support hashes:
>
> $color['apple'] = 'red';
> $color['ruby'] = 'red';
>
> $type['apple'] = 'fruit';
> $type['ruby'] = 'gem';
>
> This quickly lets me find the color or type of a given item.
>
>
cat guo wrote:
Everyday , i must click a link on a website many times, So i want to use
perl to do it automatic.
See the FAQ entry
perldoc -q redirect
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
You could use ActiveRecord.
Julian.
Learn Ruby on Rails! CHECK OUT THE FREE VIDS (LIMITED TIME) VIDEO #3
OUT NOW
http://sensei.zenunit.com/
On 07/04/2008, at 9:52 AM, Kelly Jones wrote:
Many programming languages (including Perl, Ruby, and PHP) support
hashes:
$color['apple'] = 'red';
On Sun, Apr 6, 2008 at 11:51 PM, Casey <[EMAIL PROTECTED]> wrote:
> I hit reply-all... now am I suddenly subscribed to Perl and Ruby lists!?!
Huh, didn't notice the cross-posting. But no, you're not subscribed
to any new lists.
Since we're cross-posting, the translation of my sample would be
ap
On Sun, Apr 6, 2008 at 4:52 PM, Kelly Jones <[EMAIL PROTECTED]> wrote:
> Many programming languages (including Perl, Ruby, and PHP) support hashes:
>
> $color['apple'] = 'red';
> $color['ruby'] = 'red';
>
> $type['apple'] = 'fruit';
> $type['ruby'] = 'gem';
>
> This quickly lets me find the co
On Sun, Apr 6, 2008 at 7:52 PM, Kelly Jones <[EMAIL PROTECTED]>
wrote:
> Many programming languages (including Perl, Ruby, and PHP) support hashes:
>
> $color['apple'] = 'red';
> $color['ruby'] = 'red';
>
> $type['apple'] = 'fruit';
> $type['ruby'] = 'gem';
>
> This quickly lets me find the color
(sorry I just hit send on a blank email; I'm absent-minded)
First, in the strictest mathematical sense, a relation from a set $a to a
set $b is a subset of the cross-product $a x $b.
(obviously, the mathematical notation is not a great way to represent this
in a program.)
Hence, a relation is a
As far as languages with two-way relation go, there are many; perhaps
the most prototypical is Lisp, in that either member of a pair within
an alist can be used to look the pair up, with no extra function or
second map definition required.
But PHP has pretty good support, too, actually. If you ha
hi.list!
Everyday , i must click a link on a website many times, So i want to use
perl to do it automatic.
Is there someway to do this ?
28 matches
Mail list logo