Home: Perl Programming Help: Intermediate:
I am loosing value of my argument



digioleg54
User

Jul 19, 2016, 1:18 PM


Views: 15328
I am loosing value of my argument

I have Perl script menu.pl. One of the argument I put from command line of menu is queue = 3. I checked it.
Then menu calls function function.pl
In this function args->{queue} = 1. I cannot understand why. I don't do anything with it.
In menu it is args_100{queue}. In function I put args->{queue}.
Where is my mistake?


FishMonger
Veteran / Moderator

Jul 19, 2016, 2:27 PM


Views: 15326
Re: [digioleg54] I am loosing value of my argument

It's not possible to answer your question based on that limited and confusing info.

You need to post your code and exactly how you execute it. You also need to post any/all errors and warnings it produces and explain how the output differs from what you expect.


(This post was edited by FishMonger on Jul 19, 2016, 2:28 PM)


digioleg54
User

Jul 19, 2016, 2:32 PM


Views: 15323
Re: [FishMonger] I am loosing value of my argument

The code is 1000 lines.


digioleg54
User

Jul 19, 2016, 2:39 PM


Views: 15320
Re: [FishMonger] I am loosing value of my argument

The first is working menu. We put different values, date, port, queue and so on. Then we call the second script. Script starts with:
my $args{};
and then when I print args->{queue}, instead 3 a get 1.


FishMonger
Veteran / Moderator

Jul 19, 2016, 2:42 PM


Views: 15317
Re: [digioleg54] I am loosing value of my argument

Without seeing your code, it's impossible for anyone to say what's wrong and how to fix it.

Write a short but complete test script which demonstrates the problem.


digioleg54
User

Jul 19, 2016, 2:50 PM


Views: 15315
Re: [FishMonger] I am loosing value of my argument

*** Running : g:\invacct\perl\scripts\pfi_general_ledger_check.pl -port 10001 -e
nd_date 6/23/2016 -env PROD -nav -use_pos -basis GAAP -dir \\nynas1\nynds4\vol2\
DATA\INVACCT\Fund_Recs_PFI -journals -journals_load -queue 3


#! usr/bin/perl

use strict;
use warnings;
use Getopt::Long;
use MOA::CLSUtils;
use MOA::PamReport;
use MOA::PamJobsPFI;
use MOA::Users;
use Data::Dumper;



my $args={};


sub run_job{

print STDOUT "$args->{queue}\n"

}

as you can see first line queue = 3. In sub $args->{queue} =1, but must be 3


FishMonger
Veteran / Moderator

Jul 19, 2016, 2:54 PM


Views: 15312
Re: [digioleg54] I am loosing value of my argument

You've got to be joking!

That incomplete code doesn't even begin to demonstrate the problem.


digioleg54
User

Jul 19, 2016, 2:58 PM


Views: 15309
Re: [FishMonger] I am loosing value of my argument

The program g:\\invacct\\perl\\scripts\\pfi_general_ledger_check.pl last argument is 3.
It starts running and at the beginning instead 3 I print 1


digioleg54
User

Jul 19, 2016, 3:09 PM


Views: 15306
Re: [FishMonger] I am loosing value of my argument

Can I ask you in a different way.
my $que = pop(ARGV); it gives 3.
How can I put $que into $args->{queue}?


FishMonger
Veteran / Moderator

Jul 19, 2016, 5:58 PM


Views: 15295
Re: [digioleg54] I am loosing value of my argument


In Reply To
Can I ask you in a different way.
my $que = pop(ARGV); it gives 3.
How can I put $que into $args->{queue}?


2 options:

Code
$args->{queue} = $que;

or

Code
$args->{queue} = \$que;


Those 2 statements have slightly different effects/results.

The first one copies the current value of $que and the 2nd one creates a reference to the $que var. If you use the 2nd example, if $que is altered after that assignment, then so too will the value of $args->{queue} change since it's a reference to the $que var.


(This post was edited by FishMonger on Jul 19, 2016, 6:02 PM)


FishMonger
Veteran / Moderator

Jul 20, 2016, 2:20 PM


Views: 15270
Re: [digioleg54] I am loosing value of my argument

Moving PM communication over to the original thread where it belongs.


Quote
I use it in a different program. But after that statement print args->{queue} = 1, but supposed to be different. And I don't know why.the line is:

if (!GetOptions($args,"help","dir=s","dev","port=s","end_date=s","pam","xrun","tb","nav","use_pos","basis=s","env=s","final","dev","journals","journals_load","close","no_glck","calc_nav","recycle","check_mzpx","performance","queue") || !$args->{end_date} || !$args->{port} )
{
usage(" -port and -end_date are required parameters");
}
I print exactly after the line and get 1.Something is wrong.


That is difficult to read, and difficult to maintain. At the very least you should add vertical whitespace i.e., put each option on a separate line.

Here's a cleaned up version.

Code
#!/usr/bin/perl 

use strict;
use warnings FATAL => 'all';
use Getopt::Long;
use Data::Dumper;

my $args = {};
GetOptions($args,
'help',
'dir=s',
'dev',
'port=s',
'end_date=s',
'pam',
'xrun',
'tb',
'nav',
'use_pos',
'basis=s',
'env=s',
'final',
'dev',
'journals',
'journals_load',
'close',
'no_glck',
'calc_nav',
'recycle',
'check_mzpx',
'performance',
'queue'
) or usage('Error in processing args');


if (! exists $args->{end_date} || ! exists $args->{port}) {
usage('-port and -end_date are required parameters');
}

print Dumper $args;

sub usage {
my $msg = shift || 'Error';
die "$msg\n";
}


Instead of the usage sub, a better approach would be to add the Pod::Usage module. An example of its usage is in the Getopt::Long documentation.
http://search.cpan.org/~jv/Getopt-Long-2.49.1/lib/Getopt/Long.pm#Documentation_and_help_texts


Code
C:\test>Perl-1.pl -end_date now -port 3 -app 
Unknown option: app
Error in processing args


Code
C:\test>Perl-1.pl -end_date now -port 3 
$VAR1 = {
'port' => '3',
'end_date' => 'now'
};



(This post was edited by FishMonger on Jul 20, 2016, 2:24 PM)


FishMonger
Veteran / Moderator

Jul 20, 2016, 5:43 PM


Views: 15264
Re: [digioleg54] I am loosing value of my argument

I've gone back over this thread and your PM's to me and as I've pointed out several times none of the code you've posted demonstrates your problem and it's clear that you have a minimal level of perl knowledge and probably won't be able to troubleshoot this on your own.

So, I will make this offer; if you provide me (via PM) a zip archive of your scripts and modules, I will spend a reasonable amount of time looking them over to see if I can find where your code is modifying that hash value. I'm assuming your code does lots of things that I can't reasonably duplicate so I may or may not be able to find the cause of the problem.


(This post was edited by FishMonger on Jul 20, 2016, 5:51 PM)


FishMonger
Veteran / Moderator

Jul 21, 2016, 8:58 AM


Views: 15245
Re: [digioleg54] I am loosing value of my argument

Copying the PM messages to this thread.

digioleg54
Below is my command and print dumper. I don't understand, why

Quote
g:\invacct\perl\scripts\pfi_general_ledger_check.pl -port 10001 -e
nd_date 6/23/2016 -env PROD -nav -use_pos -basis GAAP -dir \\nynas1\nynds4\vol2\
DATA\INVACCT\Fund_Recs_PFI -journals -journals_load -queue 3


Code
$VAR1 = { 
'journals' => 1,
'end_date' => '6/23/2016',
'nav' => 1,
'journals_load' => 1,
'queue' => 1,
'dir' => '\\\\nynas1\\nynds4\\vol2\\DATA\\INVACCT\\Fund_Recs_PFI',
'basis' => 'GAAP',
'use_pos' => 1,
'env' => 'PROD',
'port' => '10001'
};


fishmonger

Quote
I don't know why I missed this earlier, maybe it was due to the poor formatting of that code, but the "queue" option is defined as a Boolean flag instead of an an integer. That is why it's being assigned a 1 instead of the 3.


digioleg54
how can I define it as integer?

fishmonger
'queue=i'


digioleg54
User

Jul 21, 2016, 9:36 AM


Views: 15241
Re: [FishMonger] I am loosing value of my argument

when I put "queue=I" in Getopts, it show the message:

Option queue requires an argument

-port and -end_date are required parameters

-dev Use dev dir
-port PAM portfolio number
-start_date start_date of pam reports
-end_date end_date of pam reports. Date Format
is mm/dd/yyyy
-pam use reports( hard coded names ) run o
ut of pam to user hard coded directory
-xrun recycle auto run pam jobs
-tb run run trial balance only


digioleg54
User

Jul 21, 2016, 9:45 AM


Views: 15239
Re: [digioleg54] I am loosing value of my argument

I use Perl for windows


FishMonger
Veteran / Moderator

Jul 21, 2016, 9:58 AM


Views: 15238
Re: [digioleg54] I am loosing value of my argument


In Reply To
when I put "queue=I" in Getopts, it show the message:

Option queue requires an argument


You used the wrong character. You should use a lowercase i not an uppercase I.


(This post was edited by FishMonger on Jul 21, 2016, 10:00 AM)


digioleg54
User

Jul 21, 2016, 10:01 AM


Views: 15235
Re: [FishMonger] I am loosing value of my argument

I use lower case 'queue=i'


FishMonger
Veteran / Moderator

Jul 21, 2016, 10:10 AM


Views: 15233
Re: [digioleg54] I am loosing value of my argument

C:\test>type Perl-1.pl

Code
#!/usr/bin/perl 

use strict;
use warnings FATAL => 'all';
use Getopt::Long;
use Data::Dumper;

my $args = {};
GetOptions($args,
'help',
'dir=s',
'dev',
'port=s',
'end_date=s',
'pam',
'xrun',
'tb',
'nav',
'use_pos',
'basis=s',
'env=s',
'final',
'dev',
'journals',
'journals_load',
'close',
'no_glck',
'calc_nav',
'recycle',
'check_mzpx',
'performance',
'queue=i'
) or usage('Error in processing args');


if (! exists $args->{end_date} || ! exists $args->{port}) {
usage('-port and -end_date are required parameters');
}

print Dumper $args;

sub usage {
my $msg = shift || 'Error';
die "$msg\n";
}



Code
C:\test>Perl-1.pl -port 10001 -end_date 6/23/2016 -env PROD -nav -use_pos -basis GAAP -dir \\nynas1\nynds4\vol2\DATA\INV ACCT\Fund_Recs_PFI -journals -journals_load -queue 3 
$VAR1 = {
'queue' => 3,
'basis' => 'GAAP',
'end_date' => '6/23/2016',
'env' => 'PROD',
'dir' => '\\\\nynas1\\nynds4\\vol2\\DATA\\INVACCT\\Fund_Recs_PFI',
'journals_load' => 1,
'journals' => 1,
'port' => '10001',
'nav' => 1,
'use_pos' => 1
};



digioleg54
User

Jul 21, 2016, 10:12 AM


Views: 15231
Re: [FishMonger] I am loosing value of my argument

Did you do it for Windows 7?


FishMonger
Veteran / Moderator

Jul 21, 2016, 10:15 AM


Views: 15228
Re: [digioleg54] I am loosing value of my argument

yes


Quote
C:\test>ver

Microsoft Windows [Version 6.1.7601]



(This post was edited by FishMonger on Jul 21, 2016, 10:16 AM)


digioleg54
User

Jul 21, 2016, 10:19 AM


Views: 15224
Re: [FishMonger] I am loosing value of my argument

The problem is that I have menu. The menu ask questions, I put my answers as args. I catch $job_queue=pop(@ARGV); 16th element is queue and it is =3, or any number I put. But if I put GetOpts 'dueue=i', program crushes


FishMonger
Veteran / Moderator

Jul 21, 2016, 10:23 AM


Views: 15221
Re: [digioleg54] I am loosing value of my argument

What version of perl are you using and what version of Getopt::Long?


Quote
I catch $job_queue=pop(@ARGV);

That's a bad way to handle these types of options/arguments.

What is the output of dumping @ARGV prior to using pop or shift?

Code
print Dumper \@ARGV;



(This post was edited by FishMonger on Jul 21, 2016, 10:26 AM)


digioleg54
User

Jul 21, 2016, 10:27 AM


Views: 15218
Re: [FishMonger] I am loosing value of my argument

perl v5.18.4 for Win32
Getopts was installed in 2013
long.pm
package Getopt::Long;

use 5.004;

use strict;

use vars qw($VERSION);
$VERSION = 2.42;

last modify Tue Oct 1 08:25:52 2013


FishMonger
Veteran / Moderator

Jul 21, 2016, 10:30 AM


Views: 15215
Re: [digioleg54] I am loosing value of my argument

Upgrade the module and dump @ARGV to verify its contents.


digioleg54
User

Jul 21, 2016, 10:34 AM


Views: 15214
Re: [FishMonger] I am loosing value of my argument

$VAR1 = [
'-port',
'10001',
'-end_date',
'6/23/2016',
'-env',
'PROD',
'-nav',
'-use_pos',
'-basis',
'GAAP',
'-dir',
'\\\\nynas1\\nynds4\\vol2\\DATA\\INVACCT\\Fund_Recs_PFI',
'-journals',
'-journals_load',
'-queue',
'5'
];


I put queue = 5 now


digioleg54
User

Jul 21, 2016, 10:49 AM


Views: 9878
Re: [FishMonger] I am loosing value of my argument

how can I do that?


digioleg54
User

Jul 21, 2016, 10:53 AM


Views: 9877
Re: [FishMonger] I am loosing value of my argument

anyway, I cannot do it. We have special team. And if I say now that GetOptions doesn't work, I don't think they will be happy


FishMonger
Veteran / Moderator

Jul 21, 2016, 11:58 AM


Views: 9868
Re: [digioleg54] I am loosing value of my argument

Please post a short but complete test script that demonstrates the problem so that I can try and duplicate this issue.


FishMonger
Veteran / Moderator

Jul 21, 2016, 12:06 PM


Views: 9865
Re: [digioleg54] I am loosing value of my argument

Execute the test script that I posted earlier. If that has the same problem you're seeing in your script, then that would indicate that there is a bug in that older module and should be upgraded.


digioleg54
User

Jul 21, 2016, 12:13 PM


Views: 9863
Re: [FishMonger] I am loosing value of my argument

No, the result is OK. I will try to make short copy of the script and send you. But you have to make if as menu


digioleg54
User

Jul 21, 2016, 12:30 PM


Views: 9861
Re: [FishMonger] I am loosing value of my argument

I'll do it small parts


digioleg54
User

Jul 21, 2016, 12:37 PM


Views: 9859
Re: [FishMonger] I am loosing value of my argument

I send you two attachment. Let me know if you need something else
Attachments: generalledge.pl (1.73 KB)
  menu.pl (4.85 KB)


FishMonger
Veteran / Moderator

Jul 21, 2016, 1:19 PM


Views: 9854
Re: [digioleg54] I am loosing value of my argument

I'm real busy at work right now so I won't be able to look at your code until I get home.


digioleg54
User

Jul 21, 2016, 1:22 PM


Views: 9852
Re: [FishMonger] I am loosing value of my argument

Sure, I understand.

Thanks a lot


digioleg54
User

Jul 21, 2016, 2:45 PM


Views: 9848
Re: [FishMonger] I am loosing value of my argument

I tried to do it like you suggest, but it is not working anyway. It may be Perl issue, old version. But the new version nobody will load in the company now


FishMonger
Veteran / Moderator

Jul 21, 2016, 4:46 PM


Views: 9846
Re: [digioleg54] I am loosing value of my argument

I've looked over your tests scripts and it's clear that you don't understand the concept of a self contained test script that others can run. They both are using multiple custom modules which no-one else has access to so they can't test the scripts. They are also filled with unnecessary code, questionable to very poor code formatting and overall is poorly designed.

Regarding the value of the "queue", you didn't apply the correction that I told you it needed and that is why you still have the problem with that hash value.

Saying "it is not working anyway" is a very poor problem description and doesn't give any info on how it's failing. The code corrections I made in the test scripts I posted work correctly. I have no idea what changes you made to your code so I can't say why your code doesn't work.


digioleg54
User

Jul 21, 2016, 4:55 PM


Views: 9843
Re: [FishMonger] I am loosing value of my argument

I copied and paste your code


FishMonger
Veteran / Moderator

Jul 21, 2016, 5:08 PM


Views: 9840
Re: [digioleg54] I am loosing value of my argument


In Reply To
I copied and paste your code


Which version, the one in post #11 or post #18?

The code in post 18 is what you should test. If that fails, then the root problem is a bug in the old module and if that's the case, it should be upgraded.


FishMonger
Veteran / Moderator

Jul 21, 2016, 5:18 PM


Views: 9837
Re: [digioleg54] I am loosing value of my argument

Did you write this app or was it written by someone else and you've been contracted to update it?


digioleg54
User

Jul 22, 2016, 3:29 AM


Views: 9827
Re: [FishMonger] I am loosing value of my argument

#18. I contracted just troubleshooting it. Somebody else did it.


digioleg54
User

Jul 22, 2016, 6:00 AM


Views: 9817
Re: [FishMonger] I am loosing value of my argument

I did it one time today. Got a message:

Option queue requires an argument
Error in processing args


FishMonger
Veteran / Moderator

Jul 22, 2016, 6:24 AM


Views: 9814
Re: [digioleg54] I am loosing value of my argument

Did you supply the number arg to queue?

Did you pop @ARGV prior to executing the GetOptions() statement?

If you add an additional option after the queue, is that option and its value in the hash or is it missing?


digioleg54
User

Jul 22, 2016, 6:31 AM


Views: 9812
Re: [FishMonger] I am loosing value of my argument

I see the problem, but I can't work on it now. At 10 Am boss will come to test the program. I will explain him and if he let me change, I will. Otherwise , sorry. I am just consulting.
The problem is that in menu program owner commented two elements, but in GetOptions - not, and queue getting to different place.
If the boss want to spend more money, I can change it. Otherwise today is my last day.

I let you know the result


FishMonger
Veteran / Moderator

Jul 22, 2016, 6:41 AM


Views: 9809
Re: [digioleg54] I am loosing value of my argument


Quote
The problem is that in menu program owner commented two elements, but in GetOptions - not, and queue getting to different place


If the Getoptions() function is being used to parse the args, the ordering of the options won't matter but if shift/pop is being used to manually parse the args, then the order will make a big difference and is one of the reasons I said that using that approach is a bad idea.


digioleg54
User

Jul 22, 2016, 6:48 AM


Views: 9806
Re: [FishMonger] I am loosing value of my argument

But somehow it cannot find the queue and ask for number


FishMonger
Veteran / Moderator

Jul 22, 2016, 6:55 AM


Views: 9804
Re: [digioleg54] I am loosing value of my argument

Are you referring to the menu prompt for the user to supply the value for that option?


(This post was edited by FishMonger on Jul 22, 2016, 6:55 AM)


digioleg54
User

Jul 22, 2016, 7:11 AM


Views: 9797
Re: [FishMonger] I am loosing value of my argument

After I supply values, it goes to program and didn't print queue number even I make pop for it, then go to GetOptions and show the error, which I mention


FishMonger
Veteran / Moderator

Jul 22, 2016, 7:17 AM


Views: 9794
Re: [digioleg54] I am loosing value of my argument


In Reply To
After I supply values, it goes to program and didn't print queue number even I make pop for it, then go to GetOptions and show the error, which I mention


Your wording in that sentence is a little confusing, but if you use pop before calling GetOptions(), then obviously the value for the last option (presumably the queue option) would be stripped out of the @ARGV array and cause the error message to be generated.


(This post was edited by FishMonger on Jul 22, 2016, 7:18 AM)


digioleg54
User

Jul 22, 2016, 7:42 AM


Views: 9791
Re: [FishMonger] I am loosing value of my argument

I don't use pop in GetOptions. I receive the message, that I copied from your #18. Pop I use in another place and it also doesn't find queue value.


FishMonger
Veteran / Moderator

Jul 22, 2016, 7:55 AM


Views: 9789
Re: [digioleg54] I am loosing value of my argument

What about the question I asked earlier:

If you add an additional option after the queue, is that option and its value in the hash or is it missing?


digioleg54
User

Jul 22, 2016, 8:06 AM


Views: 8581
Re: [FishMonger] I am loosing value of my argument

I didn't add anything after queue. It is the last.


FishMonger
Veteran / Moderator

Jul 22, 2016, 8:18 AM


Views: 8578
Re: [digioleg54] I am loosing value of my argument

I realize it was the last option in your previous tests, but I'm asking you to adjust the order of the args (by adding 1 more option) to see what happens.

Part of the reason is to see if the Windows file type association is configured correctly. If it isn't, it could be cutting off part of the arguments.

What's odd to me is that your previous dump of the @ARGV array did have the value of the queue option and your dump of the hash had it as well but now you're saying that value is missing which is why I asked if you used pop before the GetOptions() call.


digioleg54
User

Jul 22, 2016, 8:35 AM


Views: 8576
Re: [FishMonger] I am loosing value of my argument

I will do it. But sometimes I am wondering why he was using so complicated system like $data->{port}->{tb} and so on. Wasn't it easier to put data to different hashes and use them separately?


digioleg54
User

Jul 22, 2016, 8:43 AM


Views: 8572
Re: [FishMonger] I am loosing value of my argument

Actually computer is pretty old, 2009, 32 bits, 4 G memory


FishMonger
Veteran / Moderator

Jul 22, 2016, 8:45 AM


Views: 8571
Re: [digioleg54] I am loosing value of my argument

I would need to see more of the code to answer that question but I do agree that the code is overly complicated and based on the limited amount of code you've shown, I'd say its logic flow is messy/convoluted.

This app should have been written using one of perl's GUI frameworks and/or used dispatch tables.


FishMonger
Veteran / Moderator

Jul 22, 2016, 8:47 AM


Views: 8570
Re: [digioleg54] I am loosing value of my argument

lol, that's on par with the systems I have to work with at our company.


digioleg54
User

Jul 22, 2016, 9:55 AM


Views: 8565
Re: [FishMonger] I am loosing value of my argument

Sorry,
what is it:Windows file type association and where can I find and configure it correctly


digioleg54
User

Jul 22, 2016, 10:12 AM


Views: 8562
Re: [FishMonger] I am loosing value of my argument

I added last element after queue. Seems like the program doesn't see it, error message:

Option queue requires an argument

Error in processing args

-dev Use dev dir
-port PFI portfolio number
-start_date start_date of pam reports
-end_date end_date of pam reports. Date Format
is mm/dd/yyyy
-pam use reports( hard coded names ) run o
ut of pam to user hard coded directory
-xrun recycle auto run pam jobs
-tb run run trial balance only


FishMonger
Veteran / Moderator

Jul 22, 2016, 12:29 PM


Views: 8555
Re: [digioleg54] I am loosing value of my argument

The assoc command is used to link the file ext to an executable and the ftype command is used to configure how it's executed and if it should accept arguments and how many args..


Code
C:\>help assoc 
Displays or modifies file extension associations

ASSOC [ext[=[fileType]]]

.ext Specifies the file extension to associate the file type with
fileType Specifies the file type to associate with the file extension

Type ASSOC without parameters to display the current file associations.
If ASSOC is invoked with just a file extension, it displays the current
file association for that file extension. Specify nothing for the file
type and the command will delete the association for the file extension.



Code
C:\>help ftype 
Displays or modifies file types used in file extension associations

FTYPE [fileType[=[openCommandString]]]

fileType Specifies the file type to examine or change
openCommandString Specifies the open command to use when launching files
of this type.

Type FTYPE without parameters to display the current file types that
have open command strings defined. FTYPE is invoked with just a file
type, it displays the current open command string for that file type.
Specify nothing for the open command string and the FTYPE command will
delete the open command string for the file type. Within an open
command string %0 or %1 are substituted with the file name being
launched through the assocation. %* gets all the parameters and %2
gets the 1st parameter, %3 the second, etc. %~n gets all the remaining
parameters starting with the nth parameter, where n may be between 2 and 9,
inclusive. For example:

ASSOC .pl=PerlScript
FTYPE PerlScript=perl.exe %1 %*

would allow you to invoke a Perl script as follows:

script.pl 1 2 3

If you want to eliminate the need to type the extensions, then do the
following:

set PATHEXT=.pl;%PATHEXT%

and the script could be invoked as follows:

script 1 2 3


I often manually edit the registry entry if it's not set correctly.


digioleg54
User

Jul 22, 2016, 12:41 PM


Views: 8553
Re: [FishMonger] I am loosing value of my argument

I am doing it on my own computer. but I am on contract. I will tell boss, he can decide it.

thanks a lot for your help.
Next week I will be looking for new job, if it is possible on summer and in my age. :)


Laurent_R
Veteran / Moderator

Jul 22, 2016, 2:29 PM


Views: 8549
Re: [digioleg54] I am loosing value of my argument

Are you so old that it is so difficult?

Wink


FishMonger
Veteran / Moderator

Jul 22, 2016, 2:34 PM


Views: 8547
Re: [Laurent_R] I am loosing value of my argument

Depends on your age and the job market in your area.

At my age and location, it would be near impossible unless I consider going back to work for my brother in the (seafood) restaurant business. :(


(This post was edited by FishMonger on Jul 22, 2016, 2:37 PM)


digioleg54
User

Jul 26, 2016, 9:48 AM


Views: 8436
Re: [Laurent_R] I am loosing value of my argument

unfortunately I am 61 and get a job ....... and summer


Laurent_R
Veteran / Moderator

Jul 26, 2016, 10:37 AM


Views: 8434
Re: [digioleg54] I am loosing value of my argument

Hmm, sorry, it was meant to be funny, but I realize it wasn't at all. Blush

Having said that, I am now 60. When I got fired almost 8 years ago due to the financial crisis back in 2008, I figured out that it would probably be difficult for me to find a regular employment contract, so I became a free-lance consultant, and that was pretty successful.

A month ago, I finally succeeded to sign a regular employment contract with the company for which I had been consulting in the last 3 and a half years; they feared that, if they did not offer me a regular employment contract, I might be interested to work for a competitor. That's how I've just found a regular job at the age of 60.

There is room for hope.

Good luck.


digioleg54
User

Jul 26, 2016, 10:44 AM


Views: 8431
Re: [Laurent_R] I am loosing value of my argument

you see, I don't know how to be free-lance consultant, I don't now the site and what is the procedure. If you explain me, I would appreciate it. You do it here or write to digioleg@yahoo.com
The last company doesn't have programmers. They use contract to fix some problems, I talked to them.