# Using \`include\` to bring variables into scope not working

**URL:** <https://discourse.julialang.org/t/using-include-to-bring-variables-into-scope-not-working/46636>\
**Category:** Data\
**Created:** [September 15, 2020, 12:32pm UTC](https://discourse.julialang.org/t/using-include-to-bring-variables-into-scope-not-working/46636 "2020-09-15T12:32:02Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![gobs](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@gobs](https://discourse.julialang.org/u/gobs)\
**Post date:** [September 18, 2020, 8:48am UTC](https://discourse.julialang.org/t/using-include-to-bring-variables-into-scope-not-working/46636/11 "2020-09-18T08:48:21Z")

</div>

I have answered my own question, having found a bunch of threads on the issue [e.g. this one](https://discourse.julialang.org/t/tips-to-cope-with-scoping-rules-of-top-level-for-loops-etc/24902). For my next project I will take the advice of writing everything in functions (though the claim that “The new debugger works like a charm” does not line up with my experience when I tried it back then). For now I’m going to keep putting `global` everywhere as if my life (or more realistically a deadline) depended on it.

---

_[View the full topic](https://discourse.julialang.org/t/using-include-to-bring-variables-into-scope-not-working/46636)._
