On Fri, 2007-09-21 at 12:47 -0400, Chas. Owens wrote:
> On 9/21/07, sivasakthi <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I have file like that following,
> >
> > site_name access_time
> > www.google.com14:13:04|14:13:04|
> > 172.16.5.49 14:12:10|14:12
Marcio Faustino wrote:
On Sep 23, 12:01 am, [EMAIL PROTECTED] (John W. Krahn) wrote:
So a function like 'open' can be overridden:
$ perl -le' print prototype "CORE::open"'
*;$@
But it looks like 'defined' cannot:
$ perl -le' print prototype "CORE::defined"'
Thanks, I didn't know that funct
Thanks for the help. I did it using
system "tasklist >> temp";
open FH , "temp" ;
statements..
unlink ("temp"); #EOF
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
On Sep 22, 9:47 pm, [EMAIL PROTECTED] (Tom Phoenix) wrote:
> Have you seen what the perlsub manpage has to say about "Overriding
> Built-in Functions"?
>
>http://perldoc.perl.org/perlsub.html#Overriding-Built-in-Functions-bu...
>
> It should be possible, even if it's not a good idea. Good luck
On 23 Sep, 00:10, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote:
>
> "use subs" doesn't seem to work on defined(). OTOH, you can call the
> function with the ampersand or with a fully qualified name.
>
> &defined();
>
> main::defined();
This is true but not really very useful. The real re
On 22 Sep, 04:43, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote:
> Santana wrote:
> > In this example this foreach loop in "printHT" function dont work ,
> > how is missed ?
>
> Really? What output did you get, and what did you expect?
Yeah, I spent two minutes looking at the OP's code and could s
On 22 Sep, 02:58, [EMAIL PROTECTED] (Luke) wrote:
> Hello,
> I am looking for a proper, fastest and most reasonable way to insert
> data from pretty big file (~1,000,000 lines) to database. I am using
> Win32::ODBC (ActiveState Perl) module to connect with Access/MSSQL
> database and inserting line
On Sep 18, 5:34 pm, [EMAIL PROTECTED] (Steve Bertrand) wrote:
> Somu wrote:
> > How do i find out the process id of any process. When we see the task
> > manager in Windows, we can see the programs running in the PC. Is
> > there any way to know the same with perl? Does process id of a program
> >
Try installing manually IO::Pty before...
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
On 9/23/07, ppp ppp <[EMAIL PROTECTED]> quoted a lengthy error
message, which said in part:
> ERROR: cannot run the configured compiler 'cl'
> (see conf/compilerok.log). Suggestions:
> 1) The complier 'cl' is not in your PATH. Add it
>to the PATH and try again. OR
> 2) The compiler isn't ins
On Sep 21, 3:48 pm, [EMAIL PROTECTED] wrote:
> On Sep 20, 9:29 am, [EMAIL PROTECTED] wrote:
>
>
>
> > On Sep 20, 2:54 am, [EMAIL PROTECTED] (Rob Dixon) wrote:
>
> > > [EMAIL PROTECTED] wrote:
>
> > > > I am currently trying to write a Perl program in a Solaris 9
> > > > environment
> > > > I am try
The following should work for you:
#!/usr/bin/perl
use strict;
use warnings;
sub printHT {
my $T = shift;
foreach (keys (%$T)) {
print "$_ = $T->{$_}\n"; # to get Key = Value
print "$T->{$_}\n"; to just get the value
}
}
my %ht_state=(AL => "Alabama", AK => "Ala
Luke schreef:
> I am looking for a proper, fastest and most reasonable way to insert
> data from pretty big file (~1,000,000 lines) to database.
Make the file have a format as needed by the data import tool of the
database system.
Often a CSV format is supported.
See also bcp:
http://technet.mic
On Sep 21, 5:03 pm, [EMAIL PROTECTED] (Santana) wrote:
> Hei all,
> how print a hashtable elements in a function that receives the
> reference of
> this hastable ???
>
> In this example this foreach loop in "printHT" function dont work ,
> how is missed ?
>
> #!/usr/bin/perl
> use strict;
> use
Hi All,
I have installed cygwin on my Windows XP machine. I want to install
perl expect module but i am getting the following .error? Can any one please
guide me.
[EMAIL PROTECTED] ~
$ perl -MCPAN -e shell
cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadL
15 matches
Mail list logo