troubleshooting Question

Unable to generate output from an array substring

Avatar of wvanthony
wvanthony asked on
Scripting Languages
2 Comments1 Solution182 ViewsLast Modified:
Hi - I am working with an array substring, and have been unable to pull data from it....the code in question appears below:

# by: Michael D. McClellan

$gameschedule_file = "/www/htdocs/calendar/gameschedule.txt";
$gamelist_file = "/www/htdocs/calendar/gamelist.txt";

@gameschedule_test = <GAMESCHEDULE>;
$gameschedule_test = $gameschedule[0];
print $gameschedule_test;
print "Hello World!";

The format of the gameschedule.txt file is:


What I am trying to do is return the first line (002%%307) via print...once I can do this, then I will replace the print command with a variable and strore the value there (and continue coding the program)....I've looked at some sample code, and it looks like mine matches, but I'm not getting anything to return....any assistance would be greatly appreciated....thanks in advance for your help in this matter...

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros