Loading ...
Sorry, an error occurred while loading the content.

RE: calling a sub name stored in a variable... SORRY....

Expand Messages
  • Frankie
    After an hour reading though programming perl... I realised I had left the & of the start of the variable name.. I also had to add no strict refs ; to get it
    Message 1 of 1 , Apr 1, 2003
    • 0 Attachment
      After an hour reading though programming perl...

      I realised I had left the & of the start of the variable name..

      I also had to add no strict 'refs';
      to get it to work..

      thanks and sorry for bothering you guys..

      rgds

      Franki

      -----Original Message-----
      From: Frankie [mailto:frankieh@...]
      Sent: Wednesday, 2 April 2003 3:34 AM
      To: perl-beginner@yahoogroups.com
      Subject: calling a sub name stored in a variable...



      Hi guys..

      I have passed a subroutine containing sql statement to a session variable..

      and I need to run that sub stored in the var name..

      for example:

      sub mysqlcode
      {
      #sql query would be here..
      }

      my $csv_query = mysqlcode;

      $query = $csv_query($session_user_client);

      it doesn't even come close to working...


      anyone know how I could go about doing this??

      any help is much appreciated.


      rgds

      Franki
    Your message has been successfully submitted and would be delivered to recipients shortly.