Hi
How to extract the path of the file name in perl
say
my $path=C:\Documents and Settings\anish\Desktop\Design Documen1.doc;
$path=~ m/([^\/\\]+)$/;
$path= $1;
print The Path is : $path;
I am getting the value as .doc...
I tried some combination. Can any one help me to get Design
Hi,
How to extract the path of the file name in perl
use File::Basename
especially the method: fileparse()
Do: perldoc File::Basename
Regards,
Edward WIJAYA
--- I²R Disclaimer
--
This email is confidential and
Jeff Pang wrote:
hello,list,
Hello,
See these commands pls:
[EMAIL PROTECTED] coremail]$ perl -le 'our %test = (type = software);
print $::{test}'
*main::test
You are printing the value for the key 'test' in the hash %:: (the symbol
table; see the Symbol Tables section
[EMAIL PROTECTED] coremail]$ perl -le 'our %test = (type = software);
print ${$::{test}{HASH}}{type}'
[ no output ]
You are trying to print $::{test}-{HASH}-{type} but $::{test} does not
contain a hash reference.
Thanks John.Then why can this work?
$ perl -le 'our %test = (type
I am not sure where to post this but I would go straight to the point.
I have been in the IT field for 5yrs working more as an Oracle developer .
However, I just got a job as the Operations / QA manager. It's a new post and
so am I kinda new to it. My boss has high regards for me and
Omabele,
I'd say you need to determine the requirements (like what needs to be
monitored), and then choose the tools best suited to meet those requirements.
Chances are that Perl alone will not be the final solution to all of your
monitoring needs. There are many freely available network and
On Tue, 28 Mar 2006, Omabele Onome wrote:
However, my boss just asked me for a flowchart / perl script to
monitor the following:- -webserver, -Db server, -chat. Where do I
start from... I have just 2 hrs to come up with the miracle solution
This list isn't your best hope then. We're here to
Omabele Onome wrote:
Hello Omabele,
I am expected to monitor the uptime, throughput; server log files etc. Look for
respond to abnormalities; manage benchmark, manage hosting usuage and check
websites for W3C compliance. (There is Linux, MySQL, Perl on all the servers).
Persoanlly, I'd
I found the following on CPAN concerning
Algorithm-Combinatorics 0.14 :
277375 http://nntp.x.perl.org/group/perl.cpan.testers/277375 PASS
5.8.5 on MSWin32 4.0 (MSWin32-x86-multi-thread)
I am running AS 5.8.3 on XP. I have checked AS for the module, but it
does
Does anyone know of any upcoming Perl courses in the San Francisco area?
Thank you.
Larissa
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
I found the following on CPAN concerning
Algorithm-Combinatorics 0.14 :
277375 http://nntp.x.perl.org/group/perl.cpan.testers/277375 PASS
5.8.5 on MSWin32 4.0 (MSWin32-x86-multi-thread)
I am running AS 5.8.3 on XP. I have checked AS for the module, but it
does
Jeff Pang wrote:
[EMAIL PROTECTED] coremail]$ perl -le 'our %test = (type = software);
print ${$::{test}{HASH}}{type}'
[ no output ]
You are trying to print $::{test}-{HASH}-{type} but $::{test} does not
contain a hash reference.
Thanks John.Then why can this work?
$ perl -le 'our
I'm trying to solve a problem in Intermediate Perl.
Basically, I open a text file and read its
information. Here is some text from the file:
gilligan.crew.hut lovey.howell.hut 4721
thurston.howell.hut lovey.howell.hut 4046
professor.hut ginger.girl.hut 5768
gilligan.crew.hut laser3.copyroom.hut
On 3/28/06, Christopher Spears [EMAIL PROTECTED] wrote:
my $sum{$source} += my
$total_bytes{$source}{$destination};
Am I missing something?
My guess is that my declarations have infested my program. Err, your program.
You can only use my() with complete variables, not with elements of a
On Tue, 2006-28-03 at 17:42 -0800, Christopher Spears wrote:
my $sum{$source} += my
$total_bytes{$source}{$destination};
The second 'my' is causing the error.
--
__END__
Just my 0.0002 million dollars worth,
--- Shawn
For the things we have to learn before we can do them,
we
Hello all perl gurus,
i want to know how we can change the properties of browser through perl
for example :- setting internet options/ home page, disable script
debugging, display messages etc
please let me know how to proceed with this sort of program through perl
any tutorial link will also
Hi all,
I have a problem in combining the nested/multiple patterns. The
input of the file is as follows:
Input:-
f1
A
B
C
/f1=c
D
E
F
f1=c
G
H
/f1=c
I
J
f1=c
K
/f1=c
L
M
f1=c
N
O
/f1
and i would
On Mar 29, 2006, at 8:10, anand kumar wrote:
Hi all,
I have a problem in combining the nested/multiple
patterns. The input of the file is as follows:
The problem to answer this message is that looks like the example is
a simplification of the real input data, and thus it is
Simpler approach may be this
my $path='C:\Documents and Settings\anish\Desktop\Design Documen1.doc';
my @a=split(/\\/,$path);
print join \n,$a[$#a];
Thanks,
a b
On 3/28/06, Xavier Noria [EMAIL PROTECTED] wrote:
On Mar 28, 2006, at 11:31, Anish Kumar K. wrote:
How to extract the path of the
19 matches
Mail list logo