Hi Friends, Can you please let me know how to get the content of a " value of the variable ". For Eg: my $type = shift; my $f_group='PBML'; my $f_lang='perl'; ...
mail meda
mailmeda@...
Jan 2, 2006 11:13 am
22504
hi all, guide me if i'm wrong. I slightly modified the code #!/usr/bin/perl sub reference { $type = shift; $f_group='PBML'; $f_lang='perl'; $f_os='linux'; $ref...
KalyanRaj
kalyanrajs@...
Jan 2, 2006 11:27 am
22505
Hi Raj, The code you gave just returns the name of the variable and not the value in it. Your code with call 'reference(group) gave 'f_group' and not its value...
mail meda
mailmeda@...
Jan 2, 2006 12:33 pm
22506
hi , when we call subroutine ' reference(group) ', output will be f_group which is not a scalar. $f_group and f_group have different meaning in Perl. Let me...
KalyanRaj
kalyanrajs@...
Jan 2, 2006 12:48 pm
22507
... mail> Hi Friends, mail> Can you please let me know how to get the content of a " value of the mail> variable ". mail> For Eg: mail> my $type = shift; mail>...
hi , as mentioned by Randal, we can put elements in a hash... "shift" is a keyword in Perl which gives out first element in an array...I wonder is there...
KalyanRaj
kalyanrajs@...
Jan 2, 2006 1:30 pm
22509
... You should always use an argument for shift. In this case, shift works on @_ since it is inside a subroutine. Outside any subroutine, shift works on @ARGV....
... Shawn> You should always use an argument for shift. That's a bit strong. It's accepted to leave the argument off shift when it's being used in a sane way....
... Yes, it's strong but all good discipline seems strong until you reap the benefits from it. I don't think it's sane for the implied behaviour of any...
Hi, Mail Meda - the following code will give you what you want....PBML. another version of code which uses hash and return sub reference { $type = shift; ...
KalyanRaj
kalyanrajs@...
Jan 3, 2006 5:31 am
22513
Hi, I am writing a Perl script for capacity planning for Windows. I am supposed to find free space and used space for C drive. I tried using File:Find and also...
hi Ashish, the following script will give free space in c: and d: drives ( because my pc has two drives ) foreach $drive ('c:','d:') { @lastline=`dir $drive`; ...
KalyanRaj
kalyanrajs@...
Jan 3, 2006 6:02 am
22515
Hai all, Can any one give me the script in perl to retrieve selected text in a web page and copy the same into a excel file. Thanks in Advance, Regards Jayadev...
Use the LWP Library from CPAN and use it to create a user agent. You can
retrieve the page and use regex to find the text that you are interested
in.
Thanks...
RAJESH PETHE
rpethe@...
Jan 3, 2006 12:17 pm
22517
Hi KalyanRaj, Thanks for the prompt reply. I am sorry I missed to mention that I am runnig this script on a network. Anyways this idea worked on the network...
Dear Ashish you can using snmp to monitor Disk usage of server and workstations using Net::SNMP Module and you need to install/enable SNMP service on machines ...
From: Shawn Corey <shawn.corey@...> ... I would be a bit surprised if anyone wrote: sub foo { my $bar = shift(@_); ... and would wonder why. In this...
... Jenda> I would be a bit surprised if anyone wrote: Jenda> sub foo { Jenda> my $bar = shift(@_); Jenda> ... Jenda> and would wonder why. In this case...
... The key phrase being "in that context". My issue is that the default depends on the context. If it was the same throughout the regardless of context, I...
... Shawn> The key phrase being "in that context". My issue is that the default Shawn> depends on the context. If it was the same throughout the regardless of ...
... Large monoliths have given me the willies ever since "2001: A Space Odyssey" came out ;) -- Just my 0.00000002 million dollars worth, ... "Probability is...
Thanks Rajesh, As iam very new user of PERL. If you give me an example for the same it would be more useful. Also,How to script, to search for keyword in...
Hi; I have a simple csv file (ie: no embedded quotes and no embedded commas) which has just a few rows but many columns. I have a header row that starts with...
... Sir, you offend me. You post pirated links to my books. I worked hard on those books, and you spit in my face. I work hard here to answer questions for...
... perldoc perldsc http://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/lib/Pod/perldsc.html Use an array of arrays. When you read a line (columns), push each...
Google search "perl filetype:pl lwp" will provide you samples Best, JC ... __________________________________________ Yahoo! DSL – Something to write home...
... In order to get text at certain (x,y) coordinates, you would have to write a web browser, or do some other very tricky magic which I don't have time to do...
Hi List, I have a problem with my subroutine. The cutdown version is: sub LoginViaCli { my ($userId, $password, $terminalIp, $termPort) = @_; $telnet = new...
... I'm not sure I understand. Are you saying you cannot use $telnet *outside* the subroutine? Or are you saying this fails *inside* the subroutine when...