FAQ

Search Discussions

199 discussions - 784 posts

  • In benchmarking some code I've come across something I did not expect: slice: use strict; use warnings; my @k=qw(1 2 3 4 5 6); my %n;@n{@k} = @k; print "hi" if exists $n{1}; print "hi" if exists ...
    JupiterHost.NetJupiterHost.Net
    Jan 25, 2005 at 2:30 am
    Jan 26, 2005 at 2:21 pm
  • hello list :) Anyone have any idea why the last line doesn't print anything? I get no errors and have eval'ed it with no errors. I've also tried with - png and - jpeg also with the same results... I ...
    JupiterHost.NetJupiterHost.Net
    Jan 8, 2005 at 5:43 pm
    Jan 11, 2005 at 5:00 am
  • HI all, i want to write a perl script in linux that would get the file names in the directory i am running it in and then execute a system command for each file.(the encoding line). how should i go ...
    Saurabh SinghviSaurabh Singhvi
    Jan 12, 2005 at 8:03 am
    Jan 14, 2005 at 3:54 am
  • I heard a lot of people dislike goto. Why? When should I use this command?
    Christopher SpearsChristopher Spears
    Jan 5, 2005 at 10:58 pm
    Jan 7, 2005 at 12:00 am
  • I need to find the index of a particular element in array. For eg., @arr = ('abc', 'xyz', 'mno','pqr','stu','sdfd'); I want to find the index of the element 'pqr' which is 4. Any function/code to ...
    MallikMallik
    Jan 27, 2005 at 7:27 am
    Jan 27, 2005 at 10:30 pm
  • Hello, If you would, please consider the following input file: <code 10|B|A| </code And the following code: <code while(< ){ if (whichline($_) == 1){ print "input line is call record line 1\n"; } ...
    Jason BalickiJason Balicki
    Jan 22, 2005 at 9:10 pm
    Jan 25, 2005 at 8:39 pm
  • Hi everyone, How could I go about having perl to get the size of a folder? thanks
    Giangaetano VituzziGiangaetano Vituzzi
    Jan 27, 2005 at 7:32 pm
    Feb 28, 2005 at 6:12 pm
  • Hi All I seem to have a problem with scope and/or handling objects here. If I use 'my worksheet = $workbook- add_worksheet("$branchNumber") or die "Couldn't add worksheet $branchNumber \n" ;' then I ...
    B McKeeB McKee
    Jan 19, 2005 at 2:37 pm
    Feb 1, 2005 at 6:13 pm
  • Hi, I've got a phone record that keeps the date and time in the following format: YYMMDDHHMM example: 0501201500 So, I've written the following to convert it to the format: MM/DD/YYYY,HH:MM example: ...
    Jason BalickiJason Balicki
    Jan 21, 2005 at 12:04 am
    Jan 22, 2005 at 8:40 pm
  • G'day... Is: my ($id) = $item =~ /_(\d+)$/; Equivalent to: $item =~ /_(\d+)$/; $id = $1; Thanks heaps... -Mike -------------------------------------------------------------------------------- Wild ...
    Michael KrausMichael Kraus
    Jan 25, 2005 at 4:45 am
    Jan 27, 2005 at 3:41 pm
  • Hi, I would like to convert my perl script into a binary executable before deploying it on a client machine I checked on google and found "perlbin" at sourceforge.net but that does not seem to work. ...
    Manas KulkarniManas Kulkarni
    Jan 24, 2005 at 9:45 pm
    Jan 25, 2005 at 10:06 pm
  • Are ALL pattern matching variables set back to undef once another m// or s/// expression is encountered, even if it contains no parenthized expressions? For example, I would have expected $1 & $2 to ...
    Dan FishDan Fish
    Jan 13, 2005 at 12:25 am
    Jan 15, 2005 at 12:38 am
  • Hello all, I have seen in quite a few posts to the list from the non-beginners, who I think all of us beginners appreciate them taking their time to help us true beginners, make some references to ...
    Dave KettmannDave Kettmann
    Jan 13, 2005 at 8:10 pm
    Jan 14, 2005 at 6:32 pm
  • Dear friends, After a couple of months dwelling into Perl scripting especially in manipulating strings, I found myself resorting to use "substr" function a lot. I had a feeling that the most of the ...
    Edward WIJAYAEdward WIJAYA
    Jan 3, 2005 at 3:07 am
    Jan 6, 2005 at 5:19 pm
  • Hello all, I have a script that is checking a service to see if its running and that its log file does not contain two error message to confirm that it has not died. However the subrutine is just ...
    Tim WolakTim Wolak
    Jan 13, 2005 at 3:15 pm
    Jan 17, 2005 at 12:04 am
  • Hi pals, How can I add values to hash, when key is the same ? Example: my %ha = ( 'test1' = [ { 'test1_a' = 'a', 'test1_b' = 'b', }, { 'test1_a' = 'a', 'test1_b' = 'b', } ] ); my %hb = ( 'test1' = [ ...
    Ing. Branislav GerzoIng. Branislav Gerzo
    Jan 10, 2005 at 12:04 pm
    Jan 11, 2005 at 8:40 am
  • I have this array and I am trying to figure out how to read $id in it. Any ideas? @history = ( { program = 'racer', version = '0.45', input = { '/home/' = undef, }, input_contents = ' $name = ...
    Jerry PrestonJerry Preston
    Jan 26, 2005 at 12:27 pm
    Jan 27, 2005 at 9:27 am
  • Lo everyone, Can someone please give me a regex to parse the following... Flags: X - disabled, I - invalid, D - dynamic, J - rejected, C - connect, S - static, r - rip, o - ospf, b - bgp # ...
    Chris KnipeChris Knipe
    Jan 18, 2005 at 1:31 pm
    Jan 19, 2005 at 11:34 am
  • Could someone point me to document(s) which describes how to use a dll in a perl script. I have a dll and information describing its function calls. I have tried to google but unfortunately I did not ...
    RenardRenard
    Jan 3, 2005 at 10:42 pm
    Jan 4, 2005 at 9:50 pm
  • I have a hard time writing a script that look at file and directories time and date stamp then delete any thing that is so many days old. if someone would give me a good starting point. Thanks Thomas
    Thomas BrownerThomas Browner
    Jan 3, 2005 at 9:49 pm
    Feb 5, 2005 at 4:33 pm
  • Is there an alternative to do this in Perl (without resorting to system "wget ..." or system "curl ...")? -- sh
    David GaramondDavid Garamond
    Jan 30, 2005 at 12:46 pm
    Jan 31, 2005 at 2:23 pm
  • Hi, I'm trying to write a CGI using perl for uploading multiple files, here's my part of codes. == my @fax_files = map(symlink($query- tmpFileName($_), "/tmp/fax_$_") ? "/tmp/fax_$_" : (), $query- ...
    Yw Chan ( Cai Lun e-Business )Yw Chan ( Cai Lun e-Business )
    Jan 29, 2005 at 2:58 pm
    Jan 30, 2005 at 1:44 am
  • Out of curiosity is there any method for trapping Windows HTTP traffic transparently, without establishing a proxy configuration, using Perl. I am searching CPAN but can't find anything. I'm ...
    James W. Thompson, IIJames W. Thompson, II
    Jan 28, 2005 at 3:44 pm
    Jan 28, 2005 at 7:01 pm
  • Some people emailed me privately and asked that I do post what I've come up with to the list. I wrote this program over the course of the last week, starting with very little perl experience (I've ...
    Jason BalickiJason Balicki
    Jan 24, 2005 at 5:14 pm
    Jan 26, 2005 at 8:36 pm
  • After a failed open, I want to run two statements for an "or die". Code Quesiton: open (TEST, " /tmp/test") or { die "Could not open test file\n"; syslog("LOG_ALERT","Could not open test file"); }; ...
    Rod JenkinsRod Jenkins
    Jan 25, 2005 at 2:17 pm
    Jan 25, 2005 at 6:41 pm
  • I have a program that generates a random number between 1 and 6. based on the outcome I want to run a subroutine that corresponds to the result. i.e if the result is 1 then the program should run sub ...
    Absolut NewbieAbsolut Newbie
    Jan 18, 2005 at 6:01 pm
    Jan 18, 2005 at 8:51 pm
  • Hi, I have made a perl module object oriented which is something like this: use Spreadsheet::ParseExcel; use DBI; ... sub new { ... } sub parse { my $dbh = ...; #here some Excel files parses and ...
    Octavian RasnitaOctavian Rasnita
    Jan 10, 2005 at 10:52 am
    Jan 12, 2005 at 5:49 pm
  • I have a script that does all kinds stuff. When its running it outputs all kinds of useful information to the screen and exits. What I want to do is have this also sent to a file. Any thoughts? Thanks
    Larry GuestLarry Guest
    Jan 11, 2005 at 11:40 pm
    Jan 12, 2005 at 8:21 am
  • Hello, I am new on the list and I am sorry if my question is irrelevant with the list. In a program I have to remove a file. I did "perdoc perlfunc" and I found Functions for filehandles, files, or ...
    Gerard RobinGerard Robin
    Jan 30, 2005 at 6:56 pm
    Jan 31, 2005 at 3:49 am
  • Is there anyway I can do a using namespace for a particular loop like in c++; ( for functions not exported ) FOr eg in a perl script use Some::Module .... { using namespace Some::Module; # Is this ...
    Ramprasad A PadmanabhanRamprasad A Padmanabhan
    Jan 27, 2005 at 9:05 am
    Jan 27, 2005 at 10:59 am
  • Is there a module to extract the real email address from a header. e.g. given "blah blach" <real.person@example.com extracts the real.person@example.com I am loathe to roll my own - sure there are ...
    Andrew BlackAndrew Black
    Jan 21, 2005 at 10:47 am
    Jan 21, 2005 at 1:16 pm
  • hello i m trying to parse an atom feed using XML::Atom::Syndication module from CPAN . the only parameter i get when i execute the sample code #!/usr/bin/perl -w use XML::Atom::Syndication; use ...
    Harsh BusaHarsh Busa
    Jan 15, 2005 at 8:12 pm
    Jan 20, 2005 at 6:48 pm
  • Hi, I installed cygWIN on win-2000 but I can't figure out How to launch cygWIN command prompt window. how do you get the prompt? Ciao, Zapa.
    Zapa PerlZapa Perl
    Jan 20, 2005 at 5:44 am
    Jan 20, 2005 at 6:36 pm
  • Hi All, time for me to ask dumb questions again... I have a script, what i want it to do is scan through a Cisco router Config file (nicely saved in a text file already so no need for and SNMP), then ...
    RichTRichT
    Jan 17, 2005 at 5:57 pm
    Jan 18, 2005 at 7:11 pm
  • I did a build on the latest version of perl. However the library Crypt::SSLeay is not present. Any idea how do I build this library? It is required for https requests. Philip
    Tham, PhilipTham, Philip
    Jan 12, 2005 at 7:05 pm
    Jan 13, 2005 at 5:56 pm
  • Hi list! ( as usual ) i have a simple question : how can i execute an array, knowing that it contains perl code?
    Groleo MariusGroleo Marius
    Jan 12, 2005 at 6:55 am
    Jan 13, 2005 at 4:33 am
  • Combo ActiveState Perl 5.6.1 635 and Apache 1.0.xx from www.perl.apache.org <http://www.perl.apache.org . The following code goes round the foreach twice as often as I think it should. (I realise the ...
    Graeme St. ClairGraeme St. Clair
    Jan 31, 2005 at 9:40 pm
    Jan 31, 2005 at 10:35 pm
  • NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <beginners-subscribe@perl.org You can also specify your ...
    CaseyCasey
    Jan 3, 2005 at 4:54 pm
    Jan 31, 2005 at 4:54 pm
  • Dear all, I want to pass a hash to a function which prints out hash's content. My code does not work. Can anyone tell me what is wrong with it? Thanks a lot #!/usr/bin/perl my %hs; $hs{"one"} = 1; ...
    Hou Feng.LeoHou Feng.Leo
    Jan 31, 2005 at 11:01 am
    Jan 31, 2005 at 3:14 pm
  • Information about these has proved hard to come by, but having ascertained what I need to use I find another problem. I want to calculate the flags to use beforehand, but if I try tie %$dbm, ...
    Ken GillettKen Gillett
    Jan 24, 2005 at 7:01 pm
    Jan 28, 2005 at 1:01 pm
  • Dear all, Is it possible for me to write a perl cgi script that will echo the output from an rsync backup? Thanks. -- Just getting into the best language ever... Fancy a yourname@perl.me.uk or ...
    Gavin HenryGavin Henry
    Jan 26, 2005 at 11:59 pm
    Jan 27, 2005 at 12:25 pm
  • Hi beginners@perl.org, how can I convert some text from windows-1250 codepage to ASCII ? I tried: use Text::Iconv; $c = Text::Iconv- new("WINDOWS-1250", "ASCII"); print $cted = $c- convert("áèž"); ...
    Ing. Branislav GerzoIng. Branislav Gerzo
    Jan 26, 2005 at 3:22 pm
    Jan 27, 2005 at 9:11 am
  • Hi, I'm trying to write a script to "invert" an alias database file. I mean, I want to generate a list where the key is the name of the user, and the value is the list of the aliases this user is ...
    Mariano CuniettiMariano Cunietti
    Jan 25, 2005 at 5:16 pm
    Jan 26, 2005 at 9:04 am
  • hi i m trying to connect to search.cpan.org (from india ) and getting 502 Bad Gateway since almost 2 days ... anyone else facing the same issue ? Harsh -- http://www.ebackend.com/blog
    Harsh BusaHarsh Busa
    Jan 20, 2005 at 5:48 pm
    Jan 21, 2005 at 10:29 am
  • I want to pass a string to a subroutine and use that as the name of the hash to tie to a dbm file (or use dbmopen). But I can't make it work with a hash reference in the sub routine. If I use the ...
    Ken GillettKen Gillett
    Jan 19, 2005 at 9:31 pm
    Jan 20, 2005 at 3:41 pm
  • How do I get a hash back from a class method call? Without a class involved (works): sub hashit { my %hash = ("a", "1", "b", "2"); return \%hash; } my $hash_ref = &hashit(); ...
    Steve abramsSteve abrams
    Jan 19, 2005 at 4:02 pm
    Jan 19, 2005 at 8:34 pm
  • Hi, I have the following code in a script I'm writing: foreach my $line (<INN ) { if ( 10 == ($line =~ s/,/,/g) ) { print OUT $line; } } Is this poor style? It looks a bit ugly, but I can't figure ...
    Tor HildrumTor Hildrum
    Jan 17, 2005 at 5:16 pm
    Jan 18, 2005 at 7:28 am
  • Hi I need help regarding substituion of varaibles with values Say I have a txt file (a.txt) which has only one line: Hi $name The PL file ======== open INPUT, "a.txt"; my $name="Anish"; my $temp=""; ...
    Anish Kumar K.Anish Kumar K.
    Jan 17, 2005 at 10:40 am
    Jan 18, 2005 at 4:30 am
  • Hi, I'm trying to match a floating point in ada. They are normal floating points with 2 extra things.(they can or can't come) 1. an underscore is permitted between the digits and 2. An alternate ...
    Ajey KulkarniAjey Kulkarni
    Jan 15, 2005 at 9:25 am
    Jan 17, 2005 at 5:55 pm
  • Hi, Our company is involved in internet service providing, and as such, troubleshooting our partner's links is one of our day to day activities. We have our own network monitoring system using mrtg ...
    Harold CastroHarold Castro
    Jan 17, 2005 at 6:53 am
    Jan 17, 2005 at 12:41 pm
Group Navigation
period‹ prev | Jan 2005 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions199
posts784
users188
websiteperl.org

188 users for January 2005

JupiterHost.Net: 58 posts John W. Krahn: 47 posts Ing. Branislav Gerzo: 33 posts Chris Devers: 27 posts Alfred Vahau: 26 posts Jenda Krynicky: 17 posts Mark Goland: 17 posts Randy W. Sims: 16 posts Thomas Bätzler: 16 posts Bob Showalter: 15 posts Jay: 15 posts Octavian Rasnita: 14 posts Tor Hildrum: 14 posts Anish Kumar K.: 13 posts Charles K. Clarkson: 13 posts Zentara: 13 posts Manav Mathur: 12 posts WebDragon: 12 posts Dave Gray: 11 posts Graeme St. Clair: 11 posts
show more
Archives