[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Need filename wildcard help!



Jared Miles <themiles@swbell.net> write:
}Hey fellow MacPerl users,
}
}I am writing some scripts to track insertions on boards that we test
}PowerPC product on.  I have several that work currently on my Sparc, but
}I'm trying to port some to MacPerl so that I can play with them at home.
}However, I'm having a little trouble getting a wildcard to work for
}filenames.  I imagine this has something to do with the fact that the
}MacOS allows you to use the asterisk symbol in file names.  Here's what I
}want my script to look like:
}
}
}%allBoards;
}$bdCntr = 0;
}
}
}while($thisSys = </StarmaxHD/dadadada/dadada/dadada/F330*.MONDATA>) {

You can't do this.  MacPerl knows squat about Unix paths (consider: / is a
legal character in a Macintosh filename).  You have to write this in proper
Mac format, which in this case is probably

StarmaxHD:dadadada:dadada:dadada:F330*.MONDATA

[snip]

}
}Jared


---
Paul J. Schinder
NASA Goddard Space Flight Center
Code 693, Greenbelt, MD 20771
schinder@pjstoaster.pg.md.us