Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Released: File::pushd

by diotalevi (Canon)
on Sep 02, 2005 at 12:45 UTC ( #488636=note: print w/replies, xml ) Need Help??

in reply to Released: File::pushd

What does "push'd" mean? Why didn't you just overload chdir or extend it like chdir_push/push_chdir/local_chdir/chdir_local? Could you rename it to something like File::LocalChdir?

Replies are listed 'Best First'.
Re^2: Released: File::pushd
by kappa (Chaplain) on Sep 02, 2005 at 12:54 UTC
    pushd/popd are rather well known shell builtins for directory stack manipulation. That's probably the rationale for the naming.
      Ok. I come from the programming side of the world and just use perl when I need something fancier in a shell.

        Why should the fact that you come from a programming world mean that the idea of a stack is foreign to you? Surely the idea of pushd/popd is quite obvious to a programmer? (I.e: I dont give a crap where i am now, take me back to the last place i was....)



      ...for some values of "shell"...

Re: Released: File::pushd
by b10m (Vicar) on Sep 02, 2005 at 13:33 UTC

    Good question! Based on the node title, I thought it'd be some daemon to push files from a server to clients. Quite wrong ...


    All code is usually tested, but rarely trusted.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://488636]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2023-03-30 08:26 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (74 votes). Check out past polls.