On Tuesday, July 23, 2002, at 11:39 , Shishir K. Singh wrote: [..] > I have this awfully old shell script that used lots of pushd and popd and > I need to convert it to perl. I will have to settle with push and pop and > cwd for the time being. Thanks anyways !!
traditionally pushd/popd are csh/tcsh things for walking around the directory structure - you may have multiple issues that you will want to think about as you port over this old csh/tcsh script.... some of the 'modern' forms of /bin/sh also use this, but of course you do not 'inherit' that "stack" in any of the sub processes.... So you may want to check why you are pushd/popd-ing all over the place in the first place - and may wish to think about re-organizing this so that a simple chain of movement would suffice: my @dir_run = qw( first_dir second_dir ) so that you merely pop them off that array - or reference them by index..... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]