Hi Matt, A very Good Morning, Need a small Info for my problem.
I have a directory named "X" which has many sub directories
"Y","Z","W" and many files about 20 , and these sub directories also
contain some more sub directories and files in them and those sub
directories also contain more directori
Hi!
Is there a special variable or trick to get the name of the current scope or
subroutine name?
Thanks,
B.
On Tue, Dec 2, 2008 at 09:11, Deviloper <[EMAIL PROTECTED]> wrote:
> Hi!
>
> Is there a special variable or trick to get the name of the current scope or
> subroutine name?
>
> Thanks,
> B.
>
The caller* function will tell you information about the call stack
(including the current function):
#!
On Tue, Dec 2, 2008 at 09:23, Chas. Owens <[EMAIL PROTECTED]> wrote:
> On Tue, Dec 2, 2008 at 09:11, Deviloper <[EMAIL PROTECTED]> wrote:
>> Hi!
>>
>> Is there a special variable or trick to get the name of the current scope or
>> subroutine name?
>>
>> Thanks,
>> B.
>>
>
> The caller* function wi
On Tue, Dec 2, 2008 at 06:48, Koti <[EMAIL PROTECTED]> wrote:
> Hi Matt, A very Good Morning, Need a small Info for my problem.
>
> I have a directory named "X" which has many sub directories
> "Y","Z","W" and many files about 20 , and these sub directories also
> contain some more sub directories
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Dec 2, 2008, at 5:48 AM, Koti wrote:
Hi Matt, A very Good Morning, Need a small Info for my problem.
I have a directory named "X" which has many sub directories
"Y","Z","W" and many files about 20 , and these sub directories also
contain some m
blake in
<[EMAIL PROTECTED]>:
> I am new to perl and attempting to write a script that will do a reverse dns
> lookup on an ip [snip]
Just looking that far, I don't think your script will work as you
intend. Here's a ptr lookup using dig ...
| dig -x 217.151.101.100
| 100.101.151.217.in-addr.ar
Hello,
whats the difference if you start a variable with ::
for example:
$::a
$a
$main::a
or:
Package Foo;
$::a # <- this is still main?!
$::Foo::a
$Foo::a
$a
didn't found information in the perldoc.
Regards Martin
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
From: "Chas. Owens" <[EMAIL PROTECTED]>
> On Tue, Dec 2, 2008 at 09:23, Chas. Owens <[EMAIL PROTECTED]> wrote:
> > On Tue, Dec 2, 2008 at 09:11, Deviloper <[EMAIL PROTECTED]> wrote:
> >> Hi!
> >>
> >> Is there a special variable or trick to get the name of the current scope
> >> or subroutine name
On Tue, 2008-12-02 at 16:42 +0100, Martin Barth wrote:
> Hello,
>
> whats the difference if you start a variable with ::
>
> for example:
>
> $::a
> $a
> $main::a
>
> or:
>
> Package Foo;
> $::a # <- this is still main?!
Yes, the is a shortcut for $main::a
>
> $::Foo::a
This is a shortcut
> > $::Foo::a
>
> This is a shortcut for $main::Foo::a
% perl -e 'package Foo; $a = 2; print $::Foo::a'
2%
% perl -e 'package Foo; $a = 2; print $Foo::a' 2%
2
so every package is a "subpackage" of main?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Hello,
I am experiencing 2 problems with the new version:
1) I have a .pl file which needs libraries located in the same
directory (.pm), so I used to put:
use lib '/home/pdupre/dir_name' ;
inside my .pl file.
That way, I was able to run the application from another directory
by using a link.
Now
On Tue, 2008-12-02 at 17:44 +0100, Martin Barth wrote:
> > > $::Foo::a
> >
> > This is a shortcut for $main::Foo::a
>
> % perl -e 'package Foo; $a = 2; print $::Foo::a'
> 2%
> % perl -e 'package Foo; $a = 2; print $Foo::a' 2%
> 2
>
> so every package is a "subpackage" of main?
Apparently
James Moser wrote:
On Dec 2, 2008, at 5:48 AM, Koti wrote:
I have a directory named "X" which has many sub directories
"Y","Z","W" and many files about 20 , and these sub directories also
contain some more sub directories and files in them and those sub
directories also contain more directorie
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Dec 2, 2008, at 11:51 AM, John W. Krahn wrote:
James Moser wrote:
On Dec 2, 2008, at 5:48 AM, Koti wrote:
I have a directory named "X" which has many sub directories
"Y","Z","W" and many files about 20 , and these sub directories also
contain
On Mon, Dec 1, 2008 at 10:18 PM, David <[EMAIL PROTECTED]> wrote:
> Thank you to all who helped me get a 6 digit date into perl. I certainly
> heed warnings about not using outside system calls in perl however, I have
> to make an outside call again.
>
>
>
> #!/usr/bin/perl -w
> use strict;
>
> my
Thanks to all the input. I learned... what more I have to learn. Here
is the final working perl script that sends the current "df -mg"
command to a text file for daily logging.
-David
#!/usr/bin/perl -w
use strict;
use warnings;
my $dayStamp = do {
my ( $day, $month, $year ) = ( localt
Koti,
You can use File::List module which does your task very easily.
Regards,
Ganesh
On Tue, Dec 2, 2008 at 5:18 PM, Koti <[EMAIL PROTECTED]> wrote:
> Hi Matt, A very Good Morning, Need a small Info for my problem.
>
> I have a directory named "X" which has many sub directories
> "Y","Z","W" a
Hi All,
I need to write perl script which will SSH to different machine , run
some commands and then send out the mail with the output of that
command.
Can it be possible in perl. Please let me know some sample code.
Please help/suggest.
Regards
Irf
This e-mail and any files transm
> Message du 03/12/08 08:37
> De : [EMAIL PROTECTED]
> A : beginners@perl.org
> Copie à :
> Objet : SSH to diff. machine
>
>
> Hi All,
>
>
>
> I need to write perl script which will SSH to different machine , run
> some commands and then send out the mail with the output of that
> command.
>
>
>
>
20 matches
Mail list logo