Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. dmazzini

    XML::Lib - Getting values from XML Node

    Solution: In case somebody need it: foreach my $tag($tagList->get_nodelist) { $tagHref = $tag->XML::LibXML::Element::getAttribute('href'); $tagUri = $tag->XML::LibXML::Element::getAttribute('uri'); $tagId =...
  2. dmazzini

    XML::Lib - Getting values from XML Node

    I forgot to add this part to the original post, any help would be very appreciated~ use XML::LibXML; dmazzini GSM/UMTS System and Telecomm Consultant
  3. dmazzini

    XML::Lib - Getting values from XML Node

    Hi guys Not very active programming these days, but I have a question about one script using XML::Lib XML Looks like this, I need to get type, uri and href from "target" using XML::Lib. <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <tags size="3" uri="XXXXXX"> <tag href="ZZZZZZZZ"...
  4. dmazzini

    Access 2010 Web Form - How to output data on button click.

    Not need programming. Create same form but using control "WEB REPORT", this control enables following functions: Export to excel, Export to Word, Export to PDF, the only limitation is that you have to create this extra control (form). It works fine, you will see the ribbon to export after you...
  5. dmazzini

    Pulling data from PERL to a rtf file

    Check this link, they use Win32::OLE to manipulate the doc file. http://snipplr.com/view/16746/ dmazzini GSM/UMTS System and Telecomm Consultant
  6. dmazzini

    Having problems using Expect

    You mentioned that "The problem is, some devices take different commands to accomplish the same task"..First, I would try to send a cmd to the router that will show me the "router type" and then based on the output send the right commands to it. e.g show version. or something like that...
  7. dmazzini

    Archive::Zip won't extract files?

    Hi, good to know you figured it out. In the past I worked with winzip using command line and it worked very well. I amposting this as a reference. Below the Winzip command line parameters. What command line parameters does WinZip support? Below is some information about the undocumented...
  8. dmazzini

    How to apply color to a label's text and background color .

    Have a look to this tutorial: http://www.bin-co.com/perl/perl_tk_tutorial/perl_tk_tutorial.pdf. dmazzini GSM/UMTS System and Telecomm Consultant
  9. dmazzini

    Spreadsheet::WriteExcel

    Win32::OLE can do that: http://www.tek-tips.com/faqs.cfm?fid=6715 dmazzini GSM/UMTS System and Telecomm Consultant
  10. dmazzini

    Define Hash with $1 &amp; $2

    Could you put example of your data? As well you could print values of $1 and $2 before build the hash, just to make sure your regex match the lines... $current =~ /^(($c1\t$c2\t$c3)\t$c4\t$c5)/; print "1->$1, 2->$2\n"; $myHash{$2} = $1; dmazzini GSM/UMTS System and Telecomm Consultant
  11. dmazzini

    A few weird characters are automatically added to a string

    You might have some Unix chars that you have to take out: To confirm it: #copy this to one file and called it ripout.pl # run it: # ripout.pl file.txt # open it again with VIM, let me know results $file =$ARGV[0]; $/=undef; open FH, "<$file"; $perlcode=<FH>; close FH; $perlcode=~ s/\r//g...
  12. dmazzini

    Ask for an efficient way to use expect.pm

    From CPAN # How to expect on multiple spawned commands foreach my $cmd (@list_of_commands) { push @commands, Expect->spawn($cmd); } expect($timeout, '-i', \@commands, [ qr"pattern", # find this pattern in output of all commands sub {...
  13. dmazzini

    Ask for an efficient way to use expect.pm

    From CPAN # How to expect on multiple spawned commands foreach my $cmd (@list_of_commands) { push @commands, Expect->spawn($cmd); } expect($timeout, '-i', \@commands, [ qr"pattern", # find this pattern in output of all commands sub {...
  14. dmazzini

    Ask for an efficient way to use expect.pm

    I did something similar in the past and it worked fine.. let's say you have all your servers (hostnames) in one array: use Expect; $PASSWD = "PASSWORD"; $PROMPT1="OLD PASSWORD:"; $PROMPT2="NEW PASSWORD:"; $PROMPT3="VERIFICATION:"; foreach (@ALLSERVERS) { accesing_ne(); sleep...
  15. dmazzini

    Writing multiline record (2D Arrays) to excel using Win32OLE

    Hi After whole day working on this I found the solution: my $CLIP = Win32::Clipboard(); $CLIP->Set($stats); # stats contains whole file contents print "Clipboard contains: ", $CLIP->Get(), "\n"; my $paste_range = $Sheet_Stats{$tab}->Range('A1'); $paste_range->PasteSpecial(); BTW...
  16. dmazzini

    Writing multiline record (2D Arrays) to excel using Win32OLE

    BTW writing cell by cell consumes too much memory, take ages and pc dies... my $i=1; my $c =1; foreach my $value (@INFO) { $Sheet_Stats{$tab}->Cells($i,$c)->{Value} = $value; $c++; } dmazzini GSM/UMTS System and Telecomm Consultant
  17. dmazzini

    Writing multiline record (2D Arrays) to excel using Win32OLE

    Hi I have an array with a variable number of multi lines records. Array contains data coming from different txt files. I dont care the file contents, I just need to copy and paste it into Excel worksheets All other script routines have been developed using Win32::Ole module. The question is...
  18. dmazzini

    output based on 2 unique columns

    Just putting a conditional when you print to the file should work. Not tested.. print OUT $wkn," ",$isin," ",$date," ",$time," ",$price," ",$units," ",$flag, "\n" if ($date =~ /$DT/); dmazzini GSM/UMTS System and Telecomm Consultant
  19. dmazzini

    Reading/Modifying data block based on one parameter

    Amazing job Miller, nice, clean and brilliant! I have thousands COCOs in the XML file, so first of all I am extracting COCO to process from the big file using the distName="PLMN-PLMN/RNC-$rncid/COCO-$coco_id".(This part I just did, however I might start playing with your XML::Twig to do it more...
  20. dmazzini

    Reading/Modifying data block based on one parameter

    Hi Miller, thanks for your prompt answer.. i have already worked with xml::twig in the past. but since i just want to modify few parameters in the xml file based on one specific parameter 'AAL2UPVCI' value. I though that I don't need to use any xml parser since more 'programming is involved'...

Part and Inventory Search

Back
Top