Search the web
Sign In
New User? Sign Up
perl-beginner · Perl Beginners Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 22503 - 22534 of 26720   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
22503
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@...
Send Email
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@...
Send Email
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@...
Send Email
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@...
Send Email
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>...
merlyn@...
merlynstoneh...
Offline Send Email
Jan 2, 2006
12:57 pm
22508
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@...
Send Email
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 Corey
shwncorey
Offline Send Email
Jan 2, 2006
2:42 pm
22510
... 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....
merlyn@...
merlynstoneh...
Offline Send Email
Jan 2, 2006
5:20 pm
22511
... 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...
Shawn Corey
shwncorey
Offline Send Email
Jan 2, 2006
5:57 pm
22512
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@...
Send Email
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...
Ashish Gupta
ashish_gupta...
Offline Send Email
Jan 3, 2006
5:38 am
22514
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@...
Send Email
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...
jaya_devsm
Offline Send Email
Jan 3, 2006
12:03 pm
22516
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@...
Send Email
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...
Ashish Gupta
ashish_gupta...
Offline Send Email
Jan 3, 2006
2:04 pm
22518
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 ...
Mohsen Basirat
mohsen_basirat
Offline Send Email
Jan 3, 2006
2:41 pm
22519
From: Ashish Gupta <ashish_gupta_cal@...> ... use Win32::FileOp qw(GetDiskFreeSpace); $freeSpaceForUser = GetDiskFreeSpace 'C:'; # or ...
Jenda Krynicky
jendaperl
Offline Send Email
Jan 3, 2006
3:19 pm
22520
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 Krynicky
jendaperl
Offline Send Email
Jan 3, 2006
3:27 pm
22521
... 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...
merlyn@...
merlynstoneh...
Offline Send Email
Jan 3, 2006
4:07 pm
22522
... 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 Corey
shwncorey
Offline Send Email
Jan 3, 2006
5:28 pm
22523
... 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 ...
merlyn@...
merlynstoneh...
Offline Send Email
Jan 3, 2006
6:22 pm
22524
... Large monoliths have given me the willies ever since "2001: A Space Odyssey" came out ;) -- Just my 0.00000002 million dollars worth, ... "Probability is...
Shawn Corey
shwncorey
Offline Send Email
Jan 3, 2006
6:47 pm
22526
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...
jaya_devsm
Offline Send Email
Jan 4, 2006
12:25 pm
22528
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...
Wolcott, Kenneth A
kaw_amfam
Offline Send Email
Jan 4, 2006
3:26 pm
22529
... 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...
merlyn@...
merlynstoneh...
Offline Send Email
Jan 4, 2006
5:01 pm
22530
... 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...
Damien Carbery
daymobrew
Offline Send Email
Jan 4, 2006
5:15 pm
22531
Google search "perl filetype:pl lwp" will provide you samples Best, JC ... __________________________________________ Yahoo! DSL – Something to write home...
JC
jchaser
Offline Send Email
Jan 4, 2006
5:33 pm
22532
... 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...
Dave Gray
yargevad
Offline Send Email
Jan 4, 2006
8:42 pm
22533
Hi List, I have a problem with my subroutine. The cutdown version is: sub LoginViaCli { my ($userId, $password, $terminalIp, $termPort) = @_; $telnet = new...
Bobby Jafari
jafari_bobby
Offline Send Email
Jan 5, 2006
1:01 am
22534
... 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...
Charles K. Clarkson
charlesclarkson
Offline Send Email
Jan 5, 2006
7:49 am
Messages 22503 - 22534 of 26720   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help