# 
# Copyright(C) 1996, 1997 Network Flight Recorder, Inc. 
# All rights reserved. 
#       
# Use and distribution of this software and its source code 
# are governed by the terms and conditions of the 
# Network Flight Recorder Software License ("LICENSE.TXT") 
# 
 


func foo {
    declare $xyz global;
    $xyz = 12;
}

func faa {
    echo ( "faa: xyz ->", xyz, "\n" );
    echo ( "faa: global:xyz ->", global:xyz, "\n" );
}

func fab {
    declare $xyz global;
    echo ( "fab: xyz ->", $xyz, "\n" );
    echo ( "fab: global:xyz ->", global:xyz, "\n" );
}

foo();
#
# faa works only if its the the global scope.
#
faa();
fab();
