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 IamaSherpa 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. iamberb

    Excel with header and lines in one sheet How to handle ?

    Hi, I have a guess commong question where I struggle with Excel. I have a header: hattr1, hattr2 and each header has 1 .. n lines with attr: nattr1,nattr2,nattr3 How to handle and enter this efficiant in 1 sheet: hattr1 hattr2 nattr1 nattr2 nattr3 Head1 AA Line1 C D Head1 AA...
  2. iamberb

    Why doesWord 2002 SP2 replace UNC path with relative path after save ?

    I experience a very strange behaviour when using absolute UNC pathes. After the save it converts to some relative path which makes no sense at all. See example below: \s01-itwal\iccsetup$\Vaj_353.EN and after save it converts to: ../../../../../../../../../iccsetup$/Vaj_353.EN Does anyone have...
  3. iamberb

    UNC links are replaced by relative path

    Hi, I checked this value and it is used if I understand right for switching or not allowing to switch from the drive letter to the UNC path. But in my case it switched from the UNC or drive letter to some weird relative path. brg robert
  4. iamberb

    UNC links are replaced by relative path

    Hi, I have big problems with word 2002 SP2 concerning absolut links. I enter \\s01-itwal\iccsetup$\Vaj_353.EN and after save it converts to: ../../../../../../../../../iccsetup$/Vaj_353.EN Thanks for your help!
  5. iamberb

    Argument Checker

    Hi, I can check everything with my own code. But i was looking for a tool which is checking the arguments on a certain behavior. 1 thing is to check what flags are existing and get the value for value flags. The other things is to check in which combination the are allowed to exists. First...
  6. iamberb

    Argument Checker

    Hi Barbie, No I mean arguments like following examples. mycopy filepath_value targetpath_value So you path 2 parameters and you know from the position what value is what kind of arguments. There are no tags for it. So is there some way to check this kind of values with getopt or any other...
  7. iamberb

    Argument Checker

    Hi, The GetOpt::Long looks quite nice for me. But I wonder how to handle positioned parameters. What u have is: -tag (flag) found in getopt -tag value (value) found in getopt value1 value2 not found in getopt So how to handle this via this package ? I could not find positioned parameter...
  8. iamberb

    How to call a method with arguments via eval ?

    Hi, What I want is to execute some code dynamically. Meaning I want to have some statements inside a string. e.g. $code="check_Name('Robert') && check_name('Hans')"; Than I want to execute the content of $code like i would execute the check_Name commands directly. Difference is only that in my...
  9. iamberb

    How to call a method with arguments via eval ?

    Hi Barbie, But can a dynamically call get_lastname() with some arguments. e.g. eval "sub {get_lastname('Robert');}"; or $firstname="Robert"; eval "sub {get_lastname($firstname);}"; What I am doing wrong ? It works fine to call get_lastname as long i don't pass an argument. Thanks! brg Robert
  10. iamberb

    How to call a method with arguments via eval ?

    Hi, I have problems with eval when I want to call a procedure inside eval which passes a argument. This line fails when i pass $firstname. If I call without argument it's fine. my $code = eval "sub {get_lastname($firstname);}"; Error: Undefined subroutine &main:: called at...
  11. iamberb

    How to get perl date time down to milliseconds ?

    Hi, Can any one help how I can get the date and time down to milliseconds ? localtime() just delivers if I understood up to seconds. Thanks! brg Robert
  12. iamberb

    eval error: Undefined subroutine &main:: called at eval_test.pl line 5

    When i use this: my $code = eval "sub { return check_name(true); }"; $return=&$code; I get error: Undefined subroutine &main:: called at eval_test.pl line 5 but this is OK. my $code = eval "sub { return check_name(); }"; So it must have something to do with argument passing inside eval. What i...
  13. iamberb

    Dynamic Code Execution in Perl ?

    Thanks for the eval hint. I just have some problem in using it. I get when using: my $code = eval "sub { return check_name(true); }"; Undefined subroutine &main:: called at eval_test.pl line 5. but my $code = eval "sub { return check_name(); }"; is OK. What i am doing wrong ? I tried as well: my...
  14. iamberb

    Argument Checker

    Hi, Has someone written a smart and flexible argument check routine. One most boring code to write again and again is to check the arguments validity of arguments passed to some perl tools. I am looking for some package which can handle argument checks dynamically. Pass what arguments should...
  15. iamberb

    Dynamic Code Execution in Perl ?

    Hi, Is there some way to execute dynamic code in perl. Something like reflection in other languages. Lets assumed I have a field containing: $tag1="test"; $check="$tag1 eq ""hallo"""; if (dyn($check)) { } So I want before executing the if to assume that instead of dyn($check) the content is...

Part and Inventory Search

Back
Top